Medium
Non-preserved file permissions
Type: advisorySources: OSV
When curl 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 filename. In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-32207
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:38 UTC · Revision 1
Source evidence
When curl 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 filename. In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.
osv:CURL-CVE-2022-32207
Complete source record
{
"id": "036960cf64c3b4718392d6f2413a10410620cf020dc9b7b0940524961a219ec3",
"url": "https://osv.dev/vulnerability/CURL-CVE-2022-32207",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Non-preserved file permissions",
"summary": "When curl 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 filename. In that rename operation, it might accidentally *widen* the permissions for the target file, leaving the updated file accessible to more users than intended.",
"evidence": "osv:CURL-CVE-2022-32207",
"products": [],
"severity": "medium",
"structured": {
"id": "CURL-CVE-2022-32207",
"aliases": [
"CURL-CVE-2022-32207",
"CVE-2022-32207"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "7.69.0"
},
{
"fixed": "7.84.0"
}
]
},
{
"repo": "https://github.com/curl/curl.git",
"type": "GIT",
"events": [
{
"introduced": "b834890a3fa3f525cd8ef4e99554cdb4558d7e1b"
},
{
"fixed": "20f9dd6bae50b7223171b17ba7798946e74f877f"
}
]
}
],
"versions": [
"7.83.1",
"7.83.0",
"7.82.0",
"7.81.0",
"7.80.0",
"7.79.1",
"7.79.0",
"7.78.0",
"7.77.0",
"7.76.1",
"7.76.0",
"7.75.0",
"7.74.0",
"7.73.0",
"7.72.0",
"7.71.1",
"7.71.0",
"7.70.0",
"7.69.1",
"7.69.0",
"curl-7_83_1",
"curl-7_83_0",
"curl-7_82_0",
"curl-7_81_0",
"curl-7_80_0",
"curl-7_79_1",
"curl-7_79_0",
"curl-7_78_0",
"curl-7_77_0",
"curl-7_76_1",
"curl-7_76_0",
"curl-7_75_0",
"curl-7_74_0",
"curl-7_73_0",
"tiny-curl-7_72_0",
"curl-7_72_0",
"curl-7_71_1",
"curl-7_71_0",
"curl-7_70_0",
"curl-7_69_1",
"curl-7_69_0"
],
"database_specific": {
"source": "https://curl.se/docs/CURL-CVE-2022-32207.json",
"vanir_signatures": [
{
"id": "CURL-CVE-2022-32207-1a290351",
"digest": {
"length": 1696,
"function_hash": "305870156830231985557133237636686356289"
},
"source": "https://github.com/curl/curl.git/commit/20f9dd6bae50b7223171b17ba7798946e74f877f",
"target": {
"file": "lib/cookie.c",
"function": "cookie_output"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CURL-CVE-2022-32207-3458378d",
"digest": {
"threshold": 0.9,
"line_hashes": [
"19542152435248566348534121121404899133",
"161367172986192604655752474631591150973",
"310751673445772978523358360521802730802",
"4424874072028108703009431066093817851",
"187440963696661346408659508771285993647",
"302895510676315582129922617783820223302",
"135815602676182081692811014512791179341",
"330436315805160357036125107162565285681",
"193568821849953497900893711564012248332",
"246537596910753757772219533742246397862",
"117533370912079928344900381165105363760",
"170086517522843419575198603782172205566",
"141821886680241180494020230255407031868",
"94742408489309836486471842947633187974",
"328885262848515589541727135342267286078",
"215183553528032001964437814862826714404",
"129336455590798651885286212325919621165",
"126236476153916860056453326280829059280",
"13477195757736043971976616540328472352",
"105791471826809518909761125461019016874",
"323647520086621415914899601557635000029",
"58910070339272998776735321338979916801",
"216274372733572833682556657574977594210"
]
},
"source": "https://github.com/curl/curl.git/commit/20f9dd6bae50b7223171b17ba7798946e74f877f",
"target": {
"file": "lib/cookie.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-25T01:05:04Z"
}
}
],
"modified": "2026-10-25T01:05:04.656416860Z",
"provider": "osv",
"references": [],
"provider_metadata": {
"CWE": {
"id": "CWE-281",
"desc": "Improper Preservation of Permissions"
},
"URL": "https://curl.se/docs/CVE-2022-32207.json",
"www": "https://curl.se/docs/CVE-2022-32207.html",
"award": {
"amount": "2400",
"currency": "USD"
},
"issue": "https://hackerone.com/reports/1573634",
"affects": "both",
"package": "curl",
"severity": "Medium",
"last_affected": "7.83.1"
}
},
"related_cves": [
{
"value": "CVE-2022-32207",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 444328,
"published_at": "2022-06-27T08:00:00+00:00"
}