CVE-2026-92842
Information disclosure via out-of-bounds read in stream filters
| Publication Date | 2026-09-25 |
|---|---|
| Severity | Moderate |
| Type | Information Disclosure |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
The convert.base64-encode, convert.quoted-printable-encode and convert.quoted-printable-decode stream filters accept a line-break-chars option whose length is tracked separately from the string itself. Providing a NUL byte within the line-break-chars option causes the filter constructor to duplicate the value with pestrdup(), which stops at the first NUL byte, while keeping the original length. When the filter later emits a line break, it copies the recorded length out of the truncated allocation, reading past its end and placing adjacent heap bytes into the filter output. In practice, this could leak sensitive data, such as credentials, private keys, or other memory contents.
Recommendations
Never use NUL as a line-break-chars option to the various convert.* stream filters. If you absolutely must, update to a patched version of PHP.