{"id":"CVE-2022-35260","details":"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.","aliases":["CURL-CVE-2022-35260"],"modified":"2026-08-12T03:51:30.772454586Z","published":"2022-12-05T00:00:00Z","related":["openSUSE-SU-2024:12447-1"],"database_specific":{"cna_assigner":"hackerone","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35260.json","unresolved_ranges":[{"extracted_events":[{"introduced":"Fixed in 7.86.0"},{"last_affected":"Fixed in 7.86.0"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://hackerone.com/reports/1721098"},{"type":"WEB","url":"https://support.apple.com/kb/HT213604"},{"type":"WEB","url":"https://support.apple.com/kb/HT213605"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35260.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-35260"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202212-01"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230110-0006/"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2023/Jan/19"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2023/Jan/20"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/curl/curl","events":[{"introduced":"45ac4d019475df03562fe0ac54eb67e1d1de0ca7"},{"fixed":"cd95ee9f771361acf241629d2fe5507e308082a2"}],"database_specific":{"extracted_events":[{"introduced":"7.84.0"},{"fixed":"7.86.0"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*"}}],"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"}}],"schema_version":"1.9.0"}