CVE-2023-30536: Insecure header validation in slim/psr7
Vulnerability summary
CVE-2023-30536 is a medium (CVSS 6.5) Interpretation Conflict vulnerability in slimframework slim_psr-7. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 56.1% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 2Timeline
- 17-04-2023PublishedVulnerability first disclosed.
- 05-02-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
EPSS trend
Probability
0.74%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.74% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Debian1 product
- php-slim-psr7< 1.6.1-1
Slimframework1 product
- slim_psr-7< 1.6.1
Slimphp1 product
- slim-psr7< 1.6.1
Ubuntu1 product
- php-slim-psr7All versions (No fix recorded)
4 vendors · 4 products
References
7 links- github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfwX Refsource CONFIRMREPORTVendor Advisory
- github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bbX Refsource MISCREPORTPatch