GHSA-wjfc-pgfp-pv9c json
Improper Input Validation in nyholm/psr7
published 3y ago modified last yr.
- cvss
- 5.3
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### 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
* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4
Patch / fix
- packagist nyholm/psr7 1.6.1
Is GHSA-wjfc-pgfp-pv9c in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | nyholm/psr7 | <1.6.1 |
1.6.1 |
Classification
- Weakness
-
- CWE-436 Interpretation Conflict
References
-
github.com
/Nyholm/psr7/security/advisories/GHSA-wjfc-pgfp-pv9c
web
-
github.com
/guzzle/psr7/security/advisories/GHSA-q7rv-6hp3-vh96
web
-
github.com
/guzzle/psr7/security/advisories/GHSA-wxmh-65f7-jcvw
web
-
nvd.nist.gov
/vuln/detail/CVE-2023-29197
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/nyholm/psr7/2023-04-17.yaml
web
-
github.com
/Nyholm/psr7
package
Sources
- GitHub Advisory GHSA-wjfc-pgfp-pv9c
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.