PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.1.2, 6.2.1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
PHP Standard Library (PSL) is set of APIs covering async, collections, networking, I/O, cryptography, terminal UI, etc. In versions 6.1.0, 6.1.1 and 6.2.0, the Psl\H2\ServerConnection does not validate that the total bytes received in DATA frames match the content-length header declared in the HEADERS frame, allowing request smuggling. This is in violation of RFC 9113 §8.1.1. A malicious client is able to send more DATA bytes than declared, smuggling additional content past application-level size limits and send fewer DATA bytes than declared and close the stream early, causing applications that trust the declared length to behave incorrectly. The vulnerability is only reachable for consumers using Psl\H2\ServerConnection directly to accept untrusted client traffic. Consumers of documented high-level PSL APIs are not affected. This issue has been fixed in versions 6.1.2 and 6.2.1.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- php-standard-library php-standard-library
From 6.1.0 · fixed in 6.1.2; From 6.2.0 · fixed in 6.2.1
- php-standard-library php-standard-library/h2
From 6.1.0 · fixed in 6.1.2; From 6.2.0 · fixed in 6.2.1
- php-standard-library/h2Packagist
From 6.1.0 · fixed in 6.1.2
- php-standard-library/h2Packagist
From 6.2.0 · fixed in 6.2.1
- php-standard-library/php-standard-libraryPackagist
From 6.1.0 · fixed in 6.1.2
- php-standard-library/php-standard-libraryPackagist
From 6.2.0 · fixed in 6.2.1