CyberRota Analysis
AI-GeneratedThe vulnerability affects HTTPX2, a Python HTTP client, where the `FileField.render_headers()` function improperly handles attacker-controlled `content_type` values and custom headers in multipart/form-data requests. This flaw allows for the injection of CR or LF characters, potentially enabling attackers to manipulate part headers, alter part semantics, or bypass security checks. Organizations using versions prior to 2.11.0 should prioritize upgrading to mitigate the risk of header injection attacks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
HTTPX2 is a next generation HTTP client for Python. Prior to 2.11.0, FileField.render_headers() in src/httpx2/httpx2/_multipart.py directly interpolates attacker-controlled content_type values and custom headers from the files= three-element (filename, content, content_type) tuple and the files= four-element (filename, content, content_type, headers) tuple into multipart/form-data part headers without validating header names or values. CR or LF characters can terminate a part header, inject additional part headers, or end the part header block early, allowing a downstream multipart parser to treat attacker-supplied lines as genuine headers and potentially alter part semantics or bypass header-based checks. This issue is fixed in version 2.11.0.