CVEfocus › CVE database › CVE-2023-30536

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

CVSS 6.5 MediumEPSS 0.8% (higher than 55% of CVEs)Published 2023-04-17Updated 2025-02-05Assigner: GitHub_M

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.

CWE-436

What to do

Fixed builds are available from Debian, Packagist: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10php-slim-psr7Not affected
vulnerable_code_not_present
Ubuntu 24.04php-slim-psr7Not affected
vulnerable_code_not_present
Debian 14php-slim-psr7Fixed1.6.1-1DEBIAN-CVE-2023-30536
Debian 13php-slim-psr7Fixed1.6.1-1DEBIAN-CVE-2023-30536
Debian 12php-slim-psr7Fixed1.6.1-1DEBIAN-CVE-2023-30536
Packagist libraryslim/psr7Fixed1.4.1GHSA-q2qj-628g-vhfw

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.