{
  "schema_version": "1.5.0",
  "id": "CURL-CVE-2022-35260",
  "aliases": [
    "CVE-2022-35260"
  ],
  "summary": ".netrc parser out-of-bounds access",
  "modified": "2026-04-25T17:48:46.00Z",
  "database_specific": {
    "package": "curl",
    "affects": "both",
    "URL": "https://curl.se/docs/CVE-2022-35260.json",
    "www": "https://curl.se/docs/CVE-2022-35260.html",
    "issue": "https://hackerone.com/reports/1721098",
    "CWE": {
      "id": "CWE-121",
      "desc": "Stack-based Buffer Overflow"
    },
    "award": {
      "amount": "480",
      "currency": "USD"
    },
    "last_affected": "7.85.0",
    "severity": "Low"
  },
  "published": "2022-10-26T08:00:00.00Z",
  "affected": [
    {
      "ranges": [
        {
           "type": "SEMVER",
           "events": [
             {"introduced": "7.84.0"},
             {"fixed": "7.86.0"}
           ]
        },
        {
           "type": "GIT",
           "repo": "https://github.com/curl/curl.git",
           "events": [
             {"introduced": "eeaae10c0fb27aa066fdc296074edeacfdeb6522"},
             {"fixed": "c97ec984fb2bc919a3aa863e0476dffa377b184c"}
           ]
        }
      ],
      "versions": [
        "7.85.0", "7.84.0"
      ]
    }
  ],
  "credits": [
    {
      "name": "Hiroki Kurosawa",
      "type": "FINDER"
    },
    {
      "name": "Daniel Stenberg",
      "type": "REMEDIATION_DEVELOPER"
    }
  ],
  "details": "curl can be told to parse a `.netrc` file for credentials. If that file ends\nin a line with consecutive non-white space letters and no newline, curl could\nread past the end of the stack-based buffer, and if the read works, write a\nzero byte possibly beyond its boundary.\n\nThis does in most cases cause a segfault or similar, but circumstances might\nalso cause different outcomes.\n\nIf a malicious user can provide a custom netrc file to an application or\notherwise affect its contents, this flaw could be used as denial-of-service."
}