Skip to main content
VulnerabilityPublished Updated

CVE-2026-6104: Php8.4 · In PHP versions 8.4. before 8.4.21 and 8.5

Affects php8.4Source GCVE Database

0
Compare
Authoritative record:CVE-2026-6104· Medium 6.3

Not known to be exploited · CVSS 6.3 Medium · fixed in 8.4.11-1ubuntu1.2 : update php8.4 when convenient.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 4.0 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.

Contested

Critical score, yet low EPSS after six months
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.4.11-1ubuntu1.2, 8.5.4-0ubuntu1.1
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:L/SI:N/SA:L/RE:M/U:Amber

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade the Ubuntu to 8.4.11-1ubuntu1.2 (php8.4 package) or 8.5.4-0ubuntu1.1 (php8.5 package).

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSphp8.5pkg:deb/ubuntu/php8.5?arch=source&distro=resoluteOther threatsAffected
  • <8.5.4-0ubuntu1.1
Fixed in
  • 8.5.4-0ubuntu1.1
Ubuntu 25.10php8.4pkg:deb/ubuntu/php8.4?arch=source&distro=questingOther threatsAffected
  • <8.4.11-1ubuntu1.2
Fixed in
  • 8.4.11-1ubuntu1.2

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…