{
  "id": "CVE-2025-9086",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-9086",
  "published_at": "2025-09-12T05:10:03.815Z",
  "title": "Out of bounds read for cookie path",
  "vendor": "curl",
  "product": "curl",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "1. A cookie is set using the `secure` keyword for `https://target`\n2. curl is redirected to or otherwise made to speak with `http://target` (same\n   hostname, but using clear text HTTP) using the same cookie set\n3. The same cookie name is set - but with only a slash as path (`path=\"/\"`).\n   Since this site is not secure, the cookie *should* be ignored.\n4. A bug in the path comparison logic makes curl read outside a heap buffer\n   boundary\n\nThe bug either causes a crash or it potentially makes the comparison come to\nthe wrong conclusion and lets the clear-text site override the contents of the\nsecure cookie, contrary to expectations and depending on the memory contents\nimmediately following the single-byte allocation that holds the path.\n\nThe presumed and correct behavior would be to plainly ignore the second set of\nthe cookie since it was already set as secure on a secure host so overriding\nit on an insecure host should not be okay.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "curl",
        "product": "curl",
        "ranges": [
          "\u003e= 8.13.0, \u003c 8.14.2",
          "\u003e= 8.15.0, \u003c 8.16.0"
        ],
        "fixed_in": [
          "8.14.2",
          "8.16.0"
        ]
      },
      {
        "vendor": "curl",
        "product": "curl",
        "ranges": [
          "\u003e= 1aea05a6c2699e80c75936d58569851555acd603, \u003c c6ae07c6a541e0e96d0040afb62b45dd37711300"
        ],
        "fixed_in": [
          "c6ae07c6a541e0e96d0040afb62b45dd37711300"
        ]
      },
      {
        "vendor": "curl",
        "product": "curl",
        "ranges": [
          "8.15.0",
          "8.14.1",
          "8.14.0",
          "8.13.0"
        ],
        "fixed_in": null
      }
    ],
    "upgrade": [
      "Upgrade curl to 8.14.2 or 8.16.0 or later.",
      "Upgrade curl to c6ae07c6a541e0e96d0040afb62b45dd37711300 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
