SSRF via query-userinfo parser mismatch
Published Feb 11, 2025 · Updated Mar 16, 2025
Server-side request forgery in Benoit Chesneau hackney before 1.21.0 allows remote attackers to reach unintended hosts through crafted URLs. The hackney_url:parse_url/1 function passed query text into authority parsing, causing text after ?@ to replace the request host even when URI.parse reported the earlier host. Exploitation requires a consuming application to validate an attacker-controlled URL with URI.parse and then pass it to hackney, allowing host allowlists to be bypassed and requests to reach internal endpoints.
Summary
What happened
Server-side request forgery in Benoit Chesneau hackney before 1.21.0 allows remote attackers to reach unintended hosts through crafted URLs. The hackney_url:parse_url/1 function passed query text into authority parsing, causing text after ?@ to replace the request host even when URI.parse reported the earlier host. Exploitation requires a consuming application to validate an attacker-controlled URL with URI.parse and then pass it to hackney, allowing host allowlists to be bypassed and requests to reach internal endpoints.
The record
- CVE
- CVE-2025-1211
- Published
- Feb 11, 2025
- Updated
- Mar 16, 2025
- Vendor
- Benoit Chesneau
- Product
- Hackney
- Classifications
- CWE-918, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 11, 2025CVE publishedPublication date reported by the CVE source.
- Mar 16, 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 <1.21.0
What conditions does exploitation require?
What is affected?
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
- hackney SSRF proof of conceptproof of concept · demonstrated
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