Skip to main content

Guzzle CVE-2026-69245

| EUVDEUVD-2026-52443 MEDIUM
Incorrect Behavior Order: Validate Before Canonicalize (CWE-180)
2026-08-03 GitHub_M GHSA-f7vp-7xgx-4w4r
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain control of private/container DNS zone
  2. Delivery
    Register subdomain of non-canonical IP spelling (e.g., evil.0x7f000001)
  3. Exploit
    Serve response setting Domain=0x7f000001 cookie
  4. Install
    Victim Guzzle app addresses canonical service via hex form
  5. C2
    Guzzle misclassifies domain as registered name, grants subdomain scope
  6. Execute
    Cookie with session token sent to attacker host on next request
  7. Impact
    Session 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

guzzle < 7.15.2
guzzle 8.0.0, < 8.0.1

Affected Packages

composer guzzlehttp/guzzle fix: 7.15.2, 8.0.1
euvd guzzle fix: 7.15.2, 8.0.1

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Aug 03, 2026 - 22:17 EUVD
CVE Published
Aug 03, 2026 - 21:05 cve.org
MEDIUM 6.5

DescriptionCVE.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

EPSS Score
0.1%
Top 96% exploitable
Prevalence
High
most-used PHP HTTP client, shipped with Laravel, Drupal, Symfony
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
High
Technical Impact
Partial

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Guzzle

View all
CVE-2026-69246 HIGH POC
7.2 Aug 03

Host confusion in GuzzleHttp Guzzle before 7.15.2 and 8.0.1 allows remote attackers who can influence a fetched URI to b

CVE-2026-67354 HIGH
8.2 Aug 01

URI fragment leakage in guzzlehttp/guzzle's RedirectMiddleware (versions before 7.15.1) exposes sensitive client-side da

CVE-2026-67355 HIGH
8.2 Aug 01

Cookie scope leakage in guzzlehttp/guzzle before 7.15.1 allows an attacker controlling a child subdomain to receive host

CVE-2022-29248 HIGH
8.1 May 25

Guzzle is a PHP HTTP client. Rated high severity (CVSS 8.1), this vulnerability is remotely exploitable, no authenticati

CVE-2022-31091 HIGH
7.7 Jun 27

Guzzle, an extensible PHP HTTP client. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, low a

CVE-2022-31090 HIGH
7.7 Jun 27

Guzzle, an extensible PHP HTTP client. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, low a

CVE-2022-31043 HIGH
7.5 Jun 10

Guzzle is an open source PHP HTTP client. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no

CVE-2022-31042 HIGH
7.5 Jun 10

Guzzle is an open source PHP HTTP client. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no

CVE-2026-67353 MEDIUM
6.9 Aug 01

Denial of service in guzzlehttp/guzzle versions before 7.15.1 allows a malicious or compromised upstream server to exhau

CVE-2026-67339 MEDIUM
6.9 Aug 01

Proxy-Authorization header leakage in guzzlehttp/guzzle before 7.14.2 allows origin servers to receive proxy credentials

CVE-2026-59882 MEDIUM
6.5 Jul 08

Host validation bypass in guzzlehttp/psr7 before 2.12.3 enables URI authority confusion attacks against PHP applications

CVE-2026-59883 MEDIUM POC
6.1 Jul 08

Cookie domain suffix-matching bypass in Guzzle PHP HTTP client (prior to 7.12.3) allows cross-host cookie disclosure, co

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy