SSRF via bracketed host misvalidation
Published Nov 12, 2024 · Updated Nov 3, 2025
SSRF in affected CPython urllib.parse versions allows remote attackers to bypass URL host validation with a bracketed non-IP host. The urlsplit and urlparse path extracts text between brackets as a hostname without verifying that it is IPv6 or IPvFuture. When one parser validates a URL and another consumes it, the mismatch allows a request to reach an unauthorized host; affected releases are before 3.9.21, 3.10.0 through 3.10.15, 3.11.0 through 3.11.3, and 3.12.0a1.
Summary
What happened
SSRF in affected CPython urllib.parse versions allows remote attackers to bypass URL host validation with a bracketed non-IP host. The urlsplit and urlparse path extracts text between brackets as a hostname without verifying that it is IPv6 or IPvFuture. When one parser validates a URL and another consumes it, the mismatch allows a request to reach an unauthorized host; affected releases are before 3.9.21, 3.10.0 through 3.10.15, 3.11.0 through 3.11.3, and 3.12.0a1.
The record
- CVE
- CVE-2024-11168
- Published
- Nov 12, 2024
- Updated
- Nov 3, 2025
- Vendor
- Python Software Foundation
- Product
- CPython
- Classifications
- CWE-918
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Nov 12, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <3.11.4
- Affected versionversion=0 <3.9.21
- Affected versionversion=3.10.0 <3.10.16
- Affected versionversion=3.11.0 <3.11.4
- Affected versionversion=3.12.0a1 <3.12.0b1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo