{"id":"CVE-2023-30536","published":"2023-04-17T21:17:33Z","modified":"2025-02-05T20:43:03Z","title":"Insecure header validation in slim/psr7","vendor":"slimphp","product":"Slim-Psr7","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00743,"percentile":0.55649,"provenance":"source"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"}],"references":[{"url":"https://github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bb","tags":["x_refsource_MISC"]},{"url":"https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","tags":["x_refsource_MISC"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":11.13},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"slimphp","affectedVersions":[{"vendor":"slimphp","product":"Slim-Psr7","versions":["< 1.6.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-05T20:42:46.543244Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"slim/psr7","vulnerableRanges":[">=1.6, <1.6.1",">=1.5, <1.5.1","<1.4.1"],"patched":["1.6.1","1.5.1","1.4.1"],"from":["GHSA-q2qj-628g-vhfw"],"provenance":"source"}],"summary":{"text":"The flaw is insecure header validation in slim/psr7, the PSR-7 HTTP message implementation from slimphp for use with Slim 4, which fails to reject newline characters in header names and values. An attacker who can control the header names passed to Slim-Psr7 can inject a bare newline so that crafted, malformed HTTP messages are produced, which can cause application errors or malformed outbound requests from a PSR-18 HTTP client, potentially leading to denial of service if a remote web application firewall bans the application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:19Z"},"euvd":{"id":"EUVD-2023-1372","exploited":false,"provenance":"source"}}