Skip to content

CVE-2023-30536 Insecure header validation in slim/psr7

MediumCVSS 6.5 EPSS 0.74%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
PHPUbuntuDebianNetwork Appliances

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.

Upgrade path

7 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/php-slim-psr7(Ubuntu 24.04) = 1.6.1-1; All versions No fix listed No fix yet
debian/php-slim-psr7(Debian 12) < 1.6.1-1 1.6.1-1 Fixed
debian/php-slim-psr7(Debian 13) < 1.6.1-1 1.6.1-1 Fixed
debian/php-slim-psr7(Debian 14) < 1.6.1-1 1.6.1-1 Fixed
slim/psr7(Packagist) < 1.4.1; = 0.1.0; = 0.2.0; = 0.3.0 +12 more 1.4.1, 1.5.1, 1.6.1 Fixed
slimframework slim psr-7 < 1.6.1 1.6.1 Fixed
slimphp Slim-Psr7 = < 1.6.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
slim/psr7(Packagist) >= 1.6, < 1.6.1 1.6.1
slim/psr7(Packagist) = 1.6 No fix listed
slim/psr7(Packagist) >= 1.5, < 1.5.1 1.5.1
slim/psr7(Packagist) = 1.5 No fix listed
slim/psr7(Packagist) < 1.4.1 1.4.1
slim/psr7(Packagist) = 0.1.0 No fix listed
slim/psr7(Packagist) = 0.2.0 No fix listed
slim/psr7(Packagist) = 0.3.0 No fix listed
slim/psr7(Packagist) = 0.4.0 No fix listed
slim/psr7(Packagist) = 0.5.0 No fix listed
slim/psr7(Packagist) = 0.6 No fix listed
slim/psr7(Packagist) = 1.0.0 No fix listed
slim/psr7(Packagist) = 1.1.0 No fix listed
slim/psr7(Packagist) = 1.2.0 No fix listed
slim/psr7(Packagist) = 1.3.0 No fix listed
slim/psr7(Packagist) = 1.4 No fix listed
debian/php-slim-psr7(Debian:12) < 1.6.1-1 1.6.1-1
debian/php-slim-psr7(Debian:14) < 1.6.1-1 1.6.1-1
debian/php-slim-psr7(Debian:13) < 1.6.1-1 1.6.1-1
slimphp Slim-Psr7 = < 1.6.1 No fix listed
slimframework slim psr-7 < 1.6.1 1.6.1
ubuntu/php-slim-psr7(Ubuntu:24.04) All versions No fix listed
ubuntu/php-slim-psr7(Ubuntu:24.04) = 1.6.1-1 No fix listed

References