Security advisory
curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2022-35260
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:12 UTC · Revision 1
Source evidence
curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.
osv:CVE-2022-35260
Complete source record
{
"id": "b02971d4851cf2f510c45e76e7b7471477b533cbf64b087ca74e2cac806f2d12",
"url": "https://osv.dev/vulnerability/CVE-2022-35260",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2022-35260",
"summary": "curl can be told to parse a `.netrc` file for credentials. If that file endsin a line with 4095 consecutive non-white space letters and no newline, curlwould first read past the end of the stack-based buffer, and if the readworks, write a zero byte beyond its boundary.This will in most cases cause a segfault or similar, but circumstances might also cause different outcomes.If a malicious user can provide a custom netrc file to an application or otherwise affect its contents, this flaw could be used as denial-of-service.",
"evidence": "osv:CVE-2022-35260",
"products": [],
"severity": "unknown",
"structured": {
"id": "CVE-2022-35260",
"aliases": [
"CURL-CVE-2022-35260",
"CVE-2022-35260"
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/curl/curl",
"type": "GIT",
"events": [
{
"introduced": "45ac4d019475df03562fe0ac54eb67e1d1de0ca7"
},
{
"fixed": "cd95ee9f771361acf241629d2fe5507e308082a2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.84.0"
},
{
"fixed": "7.86.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"curl-7_85_0",
"curl-7_84_0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35260.json"
}
}
],
"modified": "2026-10-28T02:30:23.091601187Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
"https://cert-portal.siemens.com/productcert/html/ssa-892048.html",
"https://hackerone.com/reports/1721098",
"https://support.apple.com/kb/HT213604",
"https://support.apple.com/kb/HT213605",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35260.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-35260",
"https://security.gentoo.org/glsa/202212-01",
"https://security.netapp.com/advisory/ntap-20230110-0006/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-125"
],
"cna_assigner": "hackerone",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "7.86.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "VersionTextExtraction"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35260.json"
}
},
"related_cves": [
{
"value": "CVE-2022-35260",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489697,
"published_at": "2022-12-05T00:00:00+00:00"
}