CVE-2026-92842: CWE-122 Heap-based buffer overflow in PHP Group PHP
CVE-2026-92842 is a medium severity heap-based buffer overflow vulnerability in PHP related to the convert.base64-encode, convert.quoted-printable-encode, and convert.quoted-printable-decode stream filters. The issue arises because the filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value using pestrdup(), which stops at the first NUL byte but retains the original length. This leads to reading past the allocated buffer when emitting a line break, causing adjacent heap memory to be copied into the output.
AI Analysis
Technical Summary
The vulnerability in PHP's stream filters convert.base64-encode, convert.quoted-printable-encode, and convert.quoted-printable-decode involves improper handling of the line-break-chars option. The length of this option is tracked independently from the string data. The duplication function pestrdup() truncates at the first NUL byte but keeps the original length, causing a mismatch. When the filter emits a line break, it copies data based on the recorded length, reading beyond the allocated buffer and including adjacent heap memory in the output. This is a heap-based buffer overflow (CWE-122) with related out-of-bounds read (CWE-125).
Potential Impact
This vulnerability can lead to disclosure of adjacent heap memory contents through the filter output, potentially exposing sensitive information. The CVSS score of 5.9 indicates a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, and impact on confidentiality only. There is no indication of integrity or availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor PHP Group advisories for updates and apply patches once available.
CVE-2026-92842: CWE-122 Heap-based buffer overflow in PHP Group PHP
Description
CVE-2026-92842 is a medium severity heap-based buffer overflow vulnerability in PHP related to the convert.base64-encode, convert.quoted-printable-encode, and convert.quoted-printable-decode stream filters. The issue arises because the filters accept a line-break-chars option whose length is tracked separately from the string itself. The filter constructors duplicate the value using pestrdup(), which stops at the first NUL byte but retains the original length. This leads to reading past the allocated buffer when emitting a line break, causing adjacent heap memory to be copied into the output.
CVSS v3.1
Score 5.9medium
Affected software
PHP Group
PHP
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in PHP's stream filters convert.base64-encode, convert.quoted-printable-encode, and convert.quoted-printable-decode involves improper handling of the line-break-chars option. The length of this option is tracked independently from the string data. The duplication function pestrdup() truncates at the first NUL byte but keeps the original length, causing a mismatch. When the filter emits a line break, it copies data based on the recorded length, reading beyond the allocated buffer and including adjacent heap memory in the output. This is a heap-based buffer overflow (CWE-122) with related out-of-bounds read (CWE-125).
Potential Impact
This vulnerability can lead to disclosure of adjacent heap memory contents through the filter output, potentially exposing sensitive information. The CVSS score of 5.9 indicates a medium severity with network attack vector, high attack complexity, no privileges required, no user interaction, and impact on confidentiality only. There is no indication of integrity or availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor PHP Group advisories for updates and apply patches once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- php
- Date Reserved
- 2026-09-17T02:52:30.905Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ab6e8dcf7a7c541064fdba1
Added to database: 09/25/2026, 21:34:20 UTC
Last enriched: 09/25/2026, 21:47:42 UTC
Last updated: 09/25/2026, 21:47:42 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.