CVE-2023-30536

Insecure header validation in slim/psr7

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.

Category

6.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.10%
Vendor Advisory github.com
Affected: slimphp Slim-Psr7
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-30536?
CVE-2023-30536 has been scored as a medium severity vulnerability.
How to fix CVE-2023-30536?
To fix CVE-2023-30536, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-30536 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-30536 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-30536?
CVE-2023-30536 affects slimphp Slim-Psr7.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.