Atomic Rename Permissions Widen Vulnerability in curl

curl Updated 02 Oct 2025

Summary

07/07/2022
N/A
Yes i
Critical
9.8

CVE-2022-32207: 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... Affects curl across 2 version ranges.

< 7.79.1-r2 >= b8d1366852fd0034374c5de1e4968c7a224f77cc, < 45ac4d019475df03562fe0ac54eb67e1d1de0ca7

Fixed in 7.79.1-r2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

curl is a command-line tool and library for transferring data with URLs. It supports various protocols, including HTTP, HTTPS, FTP, and more. The vulnerability affects versions of curl prior to 7.84.0. This vulnerability allows unauthorized users to access updated files that contain saved cookies, alt-svc, and hsts data. The issue arises when curl widens the permissions for the target file during the atomic rename operation, making the updated file accessible to unintended users.

Vulnerability Detail

The Atomic Rename Permissions Widen Vulnerability in curl (CVE-2022-32207) occurs when curl saves cookies, alt-svc, and hsts data to local files. During the finalization of this operation, curl mistakenly widens the permissions for the target file, granting access to more users than intended. This vulnerability can lead to unauthorized access to sensitive information, potentially compromising the security and integrity of the system.

How To Fix

Minimum fixed version

7.79.1-r2

This is the first release that contains the fix.

sudo apk add --upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update curl to the fixed version to address the issue effectively.

Conclusion

The Atomic Rename Permissions Widen Vulnerability in curl (CVE-2022-32207) poses a significant risk to systems running affected versions of curl. It is crucial to update curl to version 7.84.0 or later to mitigate the vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

curl is a command-line tool and library for transferring data with URLs. It supports various protocols, including HTTP, HTTPS, FTP, and more.

Versions of curl prior to 7.84.0 are affected by this vulnerability.

This vulnerability allows unauthorized users to access updated files that contain saved cookies, alt-svc, and hsts data, potentially compromising the security and integrity of the system.

No, there is no known workaround for this vulnerability. It is crucial to update curl to the fixed version.

To fix this vulnerability, update curl to version 7.84.0 or later.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.79.1-r2

This is the first release that contains the fix.

sudo apk add --upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback