CVE-2025-9086

Source
https://cve.org/CVERecord?id=CVE-2025-9086
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-9086.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-9086
Aliases
Downstream
ALPINE (1)
BELL (1)
CGA (1)
CLEANSTART (6)
CLSA (5)
DEBIAN (1)
ECHO (1)
JLSEC (1)
MGASA (1)
MINI (1)
OESA (1)
openSUSE (2)
RHSA (9)
RLSA (3)
ROOT (1)
SUSE (8)
UBUNTU (1)
Related
Published
2025-09-12T05:10:03Z
Modified
2026-09-16T03:31:02Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Out of bounds read for cookie path
Details
  1. A cookie is set using the secure keyword for https://target
  2. curl is redirected to or otherwise made to speak with http://target (same hostname, but using clear text HTTP) using the same cookie set
  3. The same cookie name is set - but with only a slash as path (path="/"). Since this site is not secure, the cookie should be ignored.
  4. A bug in the path comparison logic makes curl read outside a heap buffer boundary

The bug either causes a crash or it potentially makes the comparison come to the wrong conclusion and lets the clear-text site override the contents of the secure cookie, contrary to expectations and depending on the memory contents immediately following the single-byte allocation that holds the path.

The presumed and correct behavior would be to plainly ignore the second set of the cookie since it was already set as secure on a secure host so overriding it on an insecure host should not be okay.

Database specific
{
    "cna_assigner":  "curl",
    "cwe_ids":  [
        "CWE-125"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9086.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  "8.13.0"
                },
                {
                    "fixed":  "8.14.2"
                },
                {
                    "introduced":  "1aea05a6c2699e80c75936d58569851555acd603"
                },
                {
                    "fixed":  "c6ae07c6a541e0e96d0040afb62b45dd37711300"
                }
            ],
            "source":  "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/curl/curl

Affected ranges

Type
GIT
Repo
https://github.com/curl/curl
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "8.13.0"
        },
        {
            "fixed":  "8.16.0"
        }
    ],
    "source":  "CPE_RANGE"
}

Affected versions

8.*
8.13.0
8.14.0
8.14.1
Other
curl-8_13_0
curl-8_14_0
curl-8_14_1
curl-8_15_0

Database specific

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