CVE Vulnerabilities

CVE-2022-32207

Incorrect Default Permissions

Published: Jul 07, 2022 | Modified: Mar 27, 2024
CVSS 3.x
9.8
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.5 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
9.8 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Ubuntu
MEDIUM

When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the operation with a rename from a temporary name to the final target file name.In that rename operation, it might accidentally widen the permissions for the target file, leaving the updated file accessible to more users than intended.

Weakness

During installation, installed file permissions are set to allow anyone to modify those files.

Affected Software

Name Vendor Start Version End Version
Curl Haxx 7.69.0 (including) 7.84.0 (excluding)
JBoss Core Services for RHEL 8 RedHat jbcs-httpd24-curl-0:7.86.0-2.el8jbcs *
JBoss Core Services on RHEL 7 RedHat jbcs-httpd24-curl-0:7.86.0-2.el7jbcs *
Red Hat Enterprise Linux 9 RedHat curl-0:7.76.1-14.el9_0.5 *
Red Hat Enterprise Linux 9 RedHat curl-0:7.76.1-14.el9_0.5 *
Red Hat JBoss Core Services 1 RedHat curl *
Curl Ubuntu devel *
Curl Ubuntu impish *
Curl Ubuntu jammy *
Curl Ubuntu kinetic *
Curl Ubuntu upstream *

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References