All reports
Medium

curl: Unpreserved file permissions

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-32207

Probability of exploitation in the next 30 days: 12.32%

FIRST EPSS · 2026-11-22

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.

A vulnerability was found in curl. This issue occurs because when curl saves cookies, alt-svc, and HSTS data to local files, it makes the operation atomic by finalizing the process with a rename from a temporary name to the final target file name. This flaw leads to unpreserved file permissions, either by mistake or by a malicious actor.