PT-2022-28159 · Guzzle+3 · Guzzlehttp/Psr7+3
Grahamcampbell
+2
·
Published
2022-03-25
·
Updated
2024-08-20
·
CVE-2023-29197
CVSS v3.1
5.3
Medium
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
guzzlehttp/psr7 versions prior to 1.9.1
guzzlehttp/psr7 versions prior to 2.4.5
Description
The issue concerns improper header parsing, allowing an attacker to sneak in a newline (
) into both the header names and values. Many servers will also accept `to terminate the header list, which is not in line with the specification that statesr
r
` should be used. This could potentially lead to application errors or invalid HTTP requests being sent out, possibly causing a denial of service vector if a remote service's web application firewall bans the application due to the receipt of malformed requests.Recommendations
For guzzlehttp/psr7 versions prior to 1.9.1, upgrade to version 1.9.1 or later.
For guzzlehttp/psr7 versions prior to 2.4.5, upgrade to version 2.4.5 or later.
As a temporary workaround, consider validating HTTP header keys and/or values, and if using user-supplied values, filter them to strip off leading or trailing newline characters before processing.
Exploit
Fix
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Linuxmint
Ubuntu
Guzzlehttp/Psr7