CVE-2023-30536
slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\n) into both the header names and values. While the specification states that \r\n\r\n is used to terminate the header list, many servers in the wild will also accept \n\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an 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. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.
EPSS 0.16% · 37.2th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| slim | psr7 | 1.5, 1.5, 0 |
| slimphp | Slim-Psr7 | < 1.6.1, < 1.6.1 |
| slimframework | slim_psr-7 | 0, 0 |
Timeline
- Apr 17, 2023 CVE Published
- Apr 18, 2023 EPSS Score
- Apr 18, 2023 PoC Published
- May 1, 2023 CVE Updated
- May 25, 2023 EPSS Score
- Jul 2, 2023 EPSS Score
- Aug 8, 2023 EPSS Score
- Sep 15, 2023 EPSS Score
- Oct 22, 2023 EPSS Score
- Nov 29, 2023 EPSS Score
- Jan 5, 2024 EPSS Score
- Feb 12, 2024 EPSS Score
References
- https://github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfw url
- https://github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bb url
- https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4 url
- https://nvd.nist.gov/vuln/detail/CVE-2023-30536 advisory
- https://github.com/slimphp/Slim-Psr7/issues/284#issuecomment-1541328898 url
- https://github.com/slimphp/Slim-Psr7 package
- https://github.com/slimphp/Slim-Psr7/releases/tag/1.4.1 url
- https://github.com/slimphp/Slim-Psr7/releases/tag/1.5.1 url
- https://github.com/slimphp/Slim-Psr7/releases/tag/1.6.1 url