nyholm/psr7 · Security
Improper Input Validation in nyholm/psr7
- GHSA ID
- GHSA-wjfc-pgfp-pv9c
- Severity
- medium
- Published
- Updated
- CVSS
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CVSS v3
- 5.3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Description
Impact
Improper header parsing. 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.
Patches
The issue is patched in 1.6.1.
Workarounds
There are no known workarounds.
References
CWEs
- CWE-436 · Interpretation Conflict
References
- https://github.com/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c ↗
- https://github.com/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96 ↗
- https://github.com/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw ↗
- https://nvd.nist.gov/vuln/detail/CVE-2023-29197 ↗
- https://github.com/FriendsOfPHP/security-advisories/blob/master/nyholm/psr7/2023-04-17.yaml ↗
- https://github.com/advisories/GHSA-wjfc-pgfp-pv9c ↗