Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain control of private/container DNS zone
-
DeliveryRegister subdomain of non-canonical IP spelling (e.g., evil.0x7f000001)
-
ExploitServe response setting Domain=0x7f000001 cookie
-
InstallVictim Guzzle app addresses canonical service via hex form
-
C2Guzzle misclassifies domain as registered name, grants subdomain scope
-
ExecuteCookie with session token sent to attacker host on next request
-
ImpactSession disclosed or attacker-injected cookie replayed to target service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Leading special element handling
|
| Exploitation Conditions | Three simultaneous conditions must hold. First, the Guzzle client instance must have cookie support enabled via a CookieJar object or the cookies configuration option; applications not using Guzzle's cookie jar are entirely unaffected regardless of address form. Second, the application must address an origin using a non-canonical IP representation: hexadecimal single-integer form (e.g., 0x7f000001), inet_aton-style mixed-base octal (e.g., 0177.0.0.0x1), or percent-escaped labels (e.g., 192.168.0.%31 or 127.0.0.1%2e); standard dotted-decimal addresses and ordinary FQDNs are not vulnerable. Third, the application must also send requests to a hostname whose label ends in that same non-canonical spelling (e.g., evil.0x7f000001), which requires attacker-controlled DNS in a private, split-horizon, or container zone since no public DNS delegation uses these forms. On the 8.0.0 branch only the percent-escaped variant applies; on 7.x prior to 7.15.2 all three non-canonical forms are in scope. |
| Impact | The official CVSS 3.1 score is 6.5 (Medium) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N, implying low-complexity unauthenticated network exploitation. This overstates real-world ease: the AC:L rating does not account for the multiple simultaneous preconditions required. No KEV listing is present in the provided data, no public exploit code has been identified, and no EPSS score was provided. The GHSA advisory itself concedes that no public DNS delegation provides the required non-canonical hostname patterns, explicitly bounding exposure to private, split-horizon, and container DNS zones - a significant limiting factor that distinguishes this from a broadly exploitable network flaw. The confidentiality impact (session token disclosure to an attacker-controlled host) and integrity impact (session fixation via cookie jar replay) are genuine but affect a narrow population of deployments. This vulnerability is a real priority for containerized microservice architectures and split-horizon DNS environments where applications use Guzzle's cookie jar and address internal services by hex or percent-encoded IP forms; it is low priority for applications using standard FQDN addressing or not using Guzzle's cookie support. |
| Exploit ScenarioDerived | An attacker with control over a private or container DNS zone registers a hostname such as evil.0x7f000001 and serves a response that sets a cookie with Domain=0x7f000001. A vulnerable Guzzle application using a cookie jar addresses an internal service as 0x7f000001 (which libcurl resolves to 127.0.0.1), and when it subsequently issues any request to evil.0x7f000001, Guzzle incorrectly evaluates 0x7f000001 as a registered name with subdomain scope and attaches the session cookie to the request, disclosing it to the attacker's host. The reverse direction - the attacker's server injecting a cookie for Domain=0x7f000001 that is then replayed to the real 127.0.0.1 service - achieves session fixation without any public exploit code required beyond a crafted HTTP response. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
Cookie domain scope bypass in Guzzle PHP HTTP client (prior to 7.15.2 and 8.0.1) allows improper cookie sharing via non-canonical IP address representations in cookie Domain attributes. The flaw in SetCookie::matchesDomain() fails to recognize hexadecimal (e.g., 0x7f000001), mixed-base octal (e.g., 0177.0.0.0x1), and percent-escaped (e.g., 192.168.0.%31) host spellings as IP literals, so cookies set for such domains incorrectly gain subdomain scope while libcurl resolves the same strings as actual IP addresses. This divergence enables an adversary-controlled host (e.g., evil.0x7f000001) to receive session cookies intended for the target IP, facilitating credential disclosure and session fixation; no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: 7.15.2 and 8.0.1. Upgrade via Composer to guzzlehttp/guzzle ^7.15.2 or ^8.0.1 as appropriate for your major version branch. Release tags are confirmed at https://github.com/guzzle/guzzle/releases/tag/7.15.2 and https://github.com/guzzle/guzzle/releases/tag/8.0.1; the underlying code changes are in PRs #3907 and #3908. The fix enforces exact-match-only cookie domain scoping for percent-escaped domains and for domains whose dot-separated parts are all decimal, octal, or hexadecimal, eliminating the subdomain scope grant. If immediate upgrade is not feasible, disabling Guzzle's cookie jar (removing the cookies or CookieJar option from the Guzzle client) fully eliminates the attack surface with the trade-off of losing all stateful cookie handling. If cookies are required but upgrade is blocked, restrict all application-level origin addresses to standard FQDN notation - never pass hex, octal, mixed-base, or percent-encoded IP strings as origin hosts - which prevents the divergence from arising, though this requires auditing all call sites.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-180 (Incorrect Behavior Order: Validate Before Canonicalize) in Guzzle's SetCookie::matchesDomain() within src/Cookie/SetCookie.php. RFC 6265 restricts subdomain cookie scope to registered hostnames, not IP addresses; Guzzle's guard for numeric hosts historically recognized only standard dotted-decimal notation. A transport-layer canonicalization gap emerges because libcurl 8.21.0 resolves hexadecimal single-integer forms (0x7f000001), inet_aton-style mixed-base octets (0177.0.0.0x1), and percent-escaped labels (192.168.0.%31, 127.0.0.1%2e) as concrete IPv4 addresses before connecting, while Guzzle's cookie logic evaluates the raw text string and classifies these as registered domain names eligible for subdomain scope. Percent-decoding sits above numeric parsing in Guzzle's pipeline, so percent-escaped values are never classified as IP literals regardless of branch. The CPE is cpe:2.3:a:guzzle:guzzle:*:*:*:*:*:*:*:* covering the composer package guzzlehttp/guzzle. The related prior fix GHSA-g446-98w2-8p5w (CVE-2026-59883) addressed hex/octal in the rightmost label for 8.0.0, which is why 8.0.0 is only vulnerable to the percent-escaped variant.
Know when Guzzle gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Exploitation requires private/container DNS control and non-canonical IP addressing in the application, so AC:H; no authentication or user interaction is needed once conditions are met.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Guzzle is an extensible PHP HTTP client. Prior to 7.15.2 and 8.0.1, SetCookie::matchesDomain() gives every subdomain of a cookie Domain that cookie unless SetCookie::matchesDomain() recognizes the Domain as an IP literal or a numeric host, and the decision comes from the domain's own text, so two spellings a transport reads as an address keep subdomain scope. Hexadecimal and mixed-base forms such as 0x7f000001 and 0177.0.0.0x1 go unrecognized while libcurl 8.21.0 reads both as 127.0.0.1. A percent-escaped Domain keeps that scope on both branches because percent-decoding sits above numeric parsing, so 192.168.0.%31 and 127.0.0.1%2e are registered names in the URI grammar rather than address literals, and no numeric rule in any base classifies them, while libcurl decodes the host before resolving and reads them as 192.168.0.1 and 127.0.0.1. A cookie stored for Domain=0x7f000001 is placed in the Cookie header of a request to evil.0x7f000001, disclosing a session identifier or token to a host that is not that address, and a response from evil.0x7f000001 setting Domain=0x7f000001 is accepted into the jar and replayed to the address, so a server answering for the look-alike name can fix a session or set application state. Exploitation requires the application to enable cookie support, address an origin by one of these spellings, and contact a host whose name ends in that spelling. This issue is fixed in versions 7.15.2 and 8.0.1.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Host confusion in GuzzleHttp Guzzle before 7.15.2 and 8.0.1 allows remote attackers who can influence a fetched URI to b
URI fragment leakage in guzzlehttp/guzzle's RedirectMiddleware (versions before 7.15.1) exposes sensitive client-side da
Cookie scope leakage in guzzlehttp/guzzle before 7.15.1 allows an attacker controlling a child subdomain to receive host
Guzzle is a PHP HTTP client. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticati
Guzzle, an extensible PHP HTTP client. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, low a
Guzzle, an extensible PHP HTTP client. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, low a
Guzzle is an open source PHP HTTP client. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no
Guzzle is an open source PHP HTTP client. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no
Denial of service in guzzlehttp/guzzle versions before 7.15.1 allows a malicious or compromised upstream server to exhau
Proxy-Authorization header leakage in guzzlehttp/guzzle before 7.14.2 allows origin servers to receive proxy credentials
Host validation bypass in guzzlehttp/psr7 before 2.12.3 enables URI authority confusion attacks against PHP applications
Cookie domain suffix-matching bypass in Guzzle PHP HTTP client (prior to 7.12.3) allows cross-host cookie disclosure, co
EUVD-2026-52443
GHSA-f7vp-7xgx-4w4r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB