CVE-2022-35260

Source
https://cve.org/CVERecord?id=CVE-2022-35260
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-35260.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-35260
Aliases
Downstream
Related
Published
2022-12-05T22:15:10.743Z
Modified
2026-04-02T08:04:15.942983Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
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.

References

Affected packages

Git / github.com/curl/curl

Affected ranges

Type
GIT
Repo
https://github.com/curl/curl
Events
Database specific
{
    "versions": [
        {
            "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/cve-osv-conversion/osv-output/CVE-2022-35260.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "12.6.3"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "8.2.0"
            },
            {
                "fixed": "8.2.12"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "9.0.0"
            },
            {
                "fixed": "9.0.6"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.1.0"
            }
        ]
    }
]