Vulnerability Details : 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.
Vulnerability category: Denial of service
Products affected by CVE-2023-30536
- cpe:2.3:a:slimframework:slim_psr-7:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-30536
0.11%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 30 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-30536
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
3.9
|
2.5
|
NIST | |
6.5
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
3.9
|
2.5
|
GitHub, Inc. |
CWE ids for CVE-2023-30536
-
Product A handles inputs or steps differently than Product B, which causes A to perform incorrect actions based on its perception of B's state.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-30536
-
https://github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfw
Improper header validation in slim/psr7 · Advisory · slimphp/Slim-Psr7 · GitHubVendor Advisory
-
https://github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bb
Merge pull request from GHSA-q2qj-628g-vhfw · slimphp/Slim-Psr7@ed1d553 · GitHubPatch
-
https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
RFC 7230: Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and RoutingTechnical Description
Jump to