PT-2023-22763
CVE-2023-30536
·
Published
2023-04-17
·
Updated
2025-03-03
Description by
CVSS 3.1
6.5
MediumMetricsAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions
slim/psr7 versions prior to 1.6.1
Description
The issue allows an attacker to sneak in a newline (
) into both the header names and values. Although the specification states that r r is used to terminate the header list, many servers also accept ``. This could enable an attacker to craft invalid messages, potentially causing application errors or invalid HTTP requests being sent out with a PSR-18 HTTP client. The latter might present 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 versions prior to 1.6.1, upgrade to version 1.6.1 to resolve the issue. As a temporary workaround, consider restricting the input of header names to prevent the introduction of newlines (
) until the upgrade is applied.Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Found an issue in the description? Have something to add? Feel free to write us 👾