Vulnerability · Published Jul 7, 2022 · Assigned by hackerone
CVE-2022-32207
Critical 9.8
In plain English
A critical-severity security flaw in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 12.3% (higher than 96% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | curl | 7.76.1-14.el9_0.5 | ALSA-2022:6157 |
| AlmaLinux:9 | curl-minimal | 7.76.1-14.el9_0.5 | ALSA-2022:6157 |
| AlmaLinux:9 | libcurl | 7.76.1-14.el9_0.5 | ALSA-2022:6157 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-14.el9_0.5 | ALSA-2022:6157 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-14.el9_0.5 | ALSA-2022:6157 |
| Alpine:v3.20 | curl | 7.84.0-r0 | ALPINE-CVE-2022-32207 |
| Alpine:v3.21 | curl | 7.84.0-r0 | ALPINE-CVE-2022-32207 |
| Alpine:v3.22 | curl | 7.84.0-r0 | ALPINE-CVE-2022-32207 |
| Alpine:v3.23 | curl | 7.84.0-r0 | ALPINE-CVE-2022-32207 |
| Alpine:v3.24 | curl | 7.84.0-r0 | ALPINE-CVE-2022-32207 |
| Debian:12 | curl | 7.84.0-1 | DEBIAN-CVE-2022-32207 |
| Debian:13 | curl | 7.84.0-1 | DEBIAN-CVE-2022-32207 |
| Debian:14 | curl | 7.84.0-1 | DEBIAN-CVE-2022-32207 |
| Rocky Linux:9 | curl | 0:7.76.1-14.el9_0.5 | RLSA-2022:6157 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.3 | UBUNTU-CVE-2022-32207 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.3 | USN-5495-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 7.84.0 |
Weakness: CWE-840 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://hackerone.com/reports/1573634
- FEDORA-2022-1b3d7f6973 vendor-advisory
- DSA-5197 vendor-advisory
- https://security.netapp.com/advisory/ntap-20220915-0003/
- https://support.apple.com/kb/HT213488
- 20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 mailing-list
- 20221030 APPLE-SA-2022-10-24-2 macOS Ventura 13 mailing-list
- GLSA-202212-01 vendor-advisory
- https://cert-portal.siemens.com/productcert/html/ssa-419740.html
- https://cert-portal.siemens.com/productcert/html/ssa-558014.html
- https://cert-portal.siemens.com/productcert/html/ssa-942865.html
- https://cert-portal.siemens.com/productcert/html/ssa-146325.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html