CVE-2022-35260

Source
https://cve.org/CVERecord?id=CVE-2022-35260
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-35260.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-35260
Aliases
Downstream
Related
Published
2022-12-05T00:00:00Z
Modified
2026-05-18T05:53:56.461603194Z
Summary
[none]
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.

Database specific
{
    "cna_assigner": "hackerone",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/35xxx/CVE-2022-35260.json",
    "cwe_ids": [
        "CWE-125"
    ],
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "last_affected": "Fixed in 7.86.0"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/curl/curl

Affected ranges

Type
GIT
Repo
https://github.com/curl/curl
Events
Database specific
{
    "cpe": "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
    "source": "CPE_FIELD",
    "extracted_events": [
        {
            "introduced": "7.84.0"
        },
        {
            "fixed": "7.86.0"
        }
    ]
}

Affected versions

Other
curl-7_84_0
curl-7_85_0

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-35260.json"