Skip to main content
EPSS 0.5%top 61%

Php: Global buffer over-read in mb_convert_encoding() with attacker-supplied encoding (CVE-2026-6104)

0
Critical
Published: 05/12/2026 (05/12/2026, 08:55:59 UTC)
Source: GCVE Database
Product: php

Description

In PHP versions 8.4.* before 8.4.21 and 8.5.* before 8.5.6, when an encoding name containing an embedded NUL byte is passed to mb_convert_encoding() or related mbstring functions, the code incorrectly assumes that when strncasecmp() returns 0 it means the strings have the same length. This can lead to out-of-bounds read of global memory, potentially causing a crash or information disclosure or crash. Affected functions include mb_convert_encoding(), mb_detect_encoding(), mb_convert_variables(), and mb_detect_order(), as well as the mbstring.detect_order and mbstring.http_output INI settings.

Affected software

Bitnamimore threats →ghsa
php
pkg:bitnami/php
Affected versions
>=8.4.0 <8.4.21>=8.5.0 <8.5.6

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 01:45:03 UTC

Technical Analysis

This Red Hat security advisory for php8.4 addresses six vulnerabilities: a denial of service via improper handling of signed characters in ctype functions (CVE-2026-7258), a cross-site scripting vulnerability in PHP-FPM due to improper URL sanitation (CVE-2026-6735), a NULL pointer dereference in the SOAP apache:Map decoder (CVE-2026-7262), a signed integer overflow in metaphone() (CVE-2026-7568), a denial of service via DOMNode::C14N() (CVE-2026-7263), and a global buffer over-read in mb_convert_encoding() with attacker-supplied encoding (CVE-2026-6104). The advisory applies to php8.4 packages on Red Hat Enterprise Linux 10 across multiple architectures. Red Hat has released updated packages to fix these vulnerabilities.

Potential Impact

The vulnerabilities include denial of service conditions, cross-site scripting, NULL pointer dereference, integer overflow, and buffer over-read, which could lead to application crashes, potential code execution, or information disclosure depending on the context of use. The advisory rates the overall impact as important, indicating significant security concerns that could affect PHP-based web applications running on affected Red Hat Enterprise Linux 10 systems.

Mitigation Recommendations

Red Hat has released updated php8.4 packages for Red Hat Enterprise Linux 10 that address these vulnerabilities. Users should apply the official security update as described in the Red Hat advisory RHSA-2026:22649 to remediate these issues. Detailed update instructions are available at https://access.redhat.com/articles/11258. No additional mitigation steps are indicated beyond applying the provided patches.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Csaf Category
csaf_security_advisory
Csaf Version
2.0
Publisher
Red Hat Product Security
Advisory Id
RHSA-2026:22649
Cve Count
6
Additional Cves
["CVE-2026-6735","CVE-2026-7258","CVE-2026-7262","CVE-2026-7263","CVE-2026-7568"]
State
PUBLISHED

Threat ID: 6a20982ee29bf47b50ebdc91

Added to database: 06/03/2026, 21:10:06 UTC

Last enriched: 07/22/2026, 01:45:03 UTC

Last updated: 09/14/2026, 10:01:32 UTC

Views: 141

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses