CVE-2026-9546

sending old referer

Published Jul 3, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A vulnerability in libcurl caused the HTTP `Referer:` header to persist even
when explicitly cleared. While the documentation states that passing NULL to
`CURLOPT_REFERER` suppresses the header, the option failed to clear the
internal state. As a result, the previous referrer string was erroneously
reused and sent in subsequent requests, potentially leaking sensitive
information to unintended servers.

Analysis

AI-generated

Technical impact

The vulnerability resides in libcurl, where the HTTP `Referer:` header is not cleared after being explicitly set to NULL via `CURLOPT_REFERER`. Because the internal state is not reset, the previously supplied referer string is incorrectly reused in subsequent requests, potentially leaking sensitive URLs or other internal information to unintended servers. This behavior matches the information exposure weaknesses classified as CWE-200 and CWE-201.

Affected Systems

Any software that incorporates the libcurl library for HTTP requests may be impacted. The product description only specifies libcurl, meaning that all installations of libcurl that employ the affected code path could be vulnerable until a patch is applied. No affected-version information is supplied in the CVE data.

Risk and Exploitability

The EPSS score is under 1%, indicating a very low exploitation likelihood, while the CVSS score of 7.5 signals moderate‑to‑high severity. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker setting a Referer, clearing it, and thereby causing the leaked Referer to be sent to an attacker‑controlled or unrelated destination. In environments where the Referer header may contain internal or sensitive details, the risk is elevated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libcurl to the latest available version once a fix is released.
  • Use `curl_easy_reset(handle)` or otherwise reset the libcurl handle to clear the internal state when clearing the Referer header.
  • Alternatively, avoid passing NULL to CURLOPT_REFERER; instead set the string or manually delete any custom header that might persist.

Generated by OpenCVE AI on September 21, 2026 at 07:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A vulnerability in libcurl caused the HTTP `Referer:` header to persist even when explicitly cleared. While the documentation states that passing NULL to `CURLOPT_REFERER` suppresses the header, the option failed to clear the internal state. As a result the previous referrer string was erroneously reused and sent in subsequent requests, potentially leaking sensitive information to unintended servers. A vulnerability in libcurl caused the HTTP `Referer:` header to persist even when explicitly cleared. While the documentation states that passing NULL to `CURLOPT_REFERER` suppresses the header, the option failed to clear the internal state. As a result, the previous referrer string was erroneously reused and sent in subsequent requests, potentially leaking sensitive information to unintended servers.
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
CWE-710
Type Values Removed Values Added
Weaknesses CWE-200
CWE-710
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
Type Values Removed Values Added
Description A vulnerability in libcurl caused the HTTP `Referer:` header to persist even when explicitly cleared. While the documentation states that passing NULL to `CURLOPT_REFERER` suppresses the header, the option failed to clear the internal state. As a result the previous referrer string was erroneously reused and sent in subsequent requests, potentially leaking sensitive information to unintended servers.
Title sending old referer
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-201

    Insertion of Sensitive Information Into Sent Data

  • NVD-CWE-noinfo

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Sep 15, 2026, 6:03 AM
Reserved
May 26, 2026, 6:45 AM
Status
Modified
Published
Jul 3, 2026, 7:16 AM
Modified
Sep 15, 2026, 7:16 AM
Severity
Important
Public date
Jul 3, 2026, 6:18 AM