CVE-2023-30536Slimframework Slim Psr-7
Medium 6.5 No auth needed
Follow: this CVE · Slimframework · Slimframework Slim Psr-7 We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 55
- Auth required
- No
- Published
- Apr 17, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-436
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
What happens
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.
What to do
- Apply the vendor's security update for Slim Psr-7.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | slim/psr7 |
≥ 1.6 < 1.6.1 |
1.6.1 |
composer require "slim/psr7:^1.6.1" |
| Packagist | slim/psr7 |
≥ 1.5 < 1.5.1 |
1.5.1 |
composer require "slim/psr7:^1.5.1" |
| Packagist | slim/psr7 |
< 1.4.1 |
1.4.1 |
composer require "slim/psr7:^1.4.1" |
Per OSV / GitHub Advisories (GHSA-q2qj-628g-vhfw). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| slimframework | slim_psr-7 | < 1.6.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Vendor Advisory
- www.rfc-editor.org Technical Description