CVE Catalog

CVE-2026-92842

MediumCVSS 5.9
Published: Translated: NVD NIST

Summary

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. The filter constructors 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.

Risk Assessment

The risk includes heap memory disclosure into filter output, potentially exposing sensitive information or allowing an attacker to manipulate data processed by the filters.

Recommendation

It is recommended to update the component containing these filters to a patched version that correctly handles the length of the line-break-chars option.

Other vulnerabilities in PHP

See all
Original NVD description (English source)

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. The filter constructors 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS