CVE-2022-32207Incorrect Default Permissions in Curl

Severity
9.8CRITICALNVD
EPSS
0.2%
top 57.35%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJul 7
Latest updateOct 24

Description

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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages5 packages

NVDhaxx/curl7.69.07.84.0
Debianhaxx/curl< 7.74.0-1.3+deb11u2+3
CVEListV5https/github.com_curl_curlFixed in 7.84.0
NVDapple/macos< 13.0
NVDsplunk/universal_forwarder8.2.08.2.12+2

Also affects: Debian Linux 11.0, Fedora 35

🔴Vulnerability Details

4
GHSA
GHSA-mvxp-vg38-gq5c: When curl < 72022-07-08
CVEList
CVE-2022-32207: When curl < 72022-07-07
OSV
CVE-2022-32207: When curl < 72022-07-07
OSV
curl vulnerabilities2022-06-27

📋Vendor Advisories

6
Apple
CVE-2022-32207: macOS Ventura 132022-10-24
Oracle
Oracle Oracle MySQL Risk Matrix: Enterprise Backup: Security (cURL) — CVE-2022-322072022-10-15
Microsoft
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 tha2022-07-12
Red Hat
curl: Unpreserved file permissions2022-06-27
Ubuntu
curl vulnerabilities2022-06-27

💬Community

2
HackerOne
CVE-2022-32207: Unpreserved file permissions2022-06-27
HackerOne
CVE-2022-32207: Unpreserved file permissions2022-06-27
CVE-2022-32207 — Incorrect Default Permissions in Curl | cvebase