CVE catalog

CVE-2026-6104

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

[CVE catalog]

Severity
High · CVSS 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianphp8.2bookworm8.2.32-1~deb12u1not affected
Debianphp8.2bookworm-security8.2.35-1~deb12u1not affected
Cpephp8.3Not reported8.3.6-0ubuntu0.24.04.9fixed
Cpelibapache2-mod-php8.3Not reported8.3.6-0ubuntu0.24.04.9fixed
Cpelibphp8.3-embedNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-bcmathNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-bz2Not reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-cgiNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-cliNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-commonNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-curlNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-dbaNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-devNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-enchantNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-fpmNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-gdNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-gmpNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-imapNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-interbaseNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-intlNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-ldapNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-mbstringNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-mysqlNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-odbcNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-opcacheNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-pgsqlNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-phpdbgNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-pspellNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-readlineNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-snmpNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-soapNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-sqlite3Not reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-sybaseNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-tidyNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-xmlNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-xslNot reported8.3.6-0ubuntu0.24.04.9fixed
Cpephp8.3-zipNot reported8.3.6-0ubuntu0.24.04.9fixed
CpephpNot reported8.4.21fixed
CpephpNot reported8.5.6fixed
Ubuntuphp8.425.108.4.5-1ubuntu1vulnerable
Ubuntuphp8.425.108.4.8-1ubuntu1vulnerable
Ubuntuphp8.425.108.4.11-1ubuntu1vulnerable
Ubuntuphp8.425.108.4.11-1ubuntu1.1vulnerable
Ubuntuphp8.425.108.4.11-1ubuntu1.2fixed
Ubuntuphp8.526.048.5.2-0ubuntu1vulnerable
Ubuntuphp8.526.048.5.4-0ubuntu1vulnerable
Ubuntuphp8.526.048.5.4-0ubuntu1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianphp8.2sourcebookwormNot affectedunimportantNot reportedNot reported
Cpephp8.3cpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpelibapache2-mod-php8.3cpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpelibphp8.3-embedcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-bcmathcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-bz2cpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-cgicpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-clicpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-commoncpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-curlcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-dbacpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-devcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-enchantcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-fpmcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-gdcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-gmpcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-imapcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-interbasecpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-intlcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-ldapcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-mbstringcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-mysqlcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-odbccpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-opcachecpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-pgsqlcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-phpdbgcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-pspellcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-readlinecpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-snmpcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-soapcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-sqlite3cpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-sybasecpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-tidycpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-xmlcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-xslcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
Cpephp8.3-zipcpeNot reported8.3.6-0ubuntu0.24.04.9Not reportedNot reportedNot reported
CpephpcpeNot reported8.4.21Not reportedNot reportedNot reported
CpephpcpeNot reported8.5.6Not reportedNot reportedNot reported
Ubuntuphp8.4deb25.108.4.11-1ubuntu1.2Not reportedUBUNTU-CVE-2026-6104Not reported
Ubuntuphp8.5deb26.048.5.4-0ubuntu1.1Not reportedUBUNTU-CVE-2026-6104Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libapache2-mod-php8.2]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [libphp8.2-embed]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2]Not affected
    Details (4)
    • 8.2.32-1~deb12u1 · all · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · all · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · all · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · all · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-bcmath]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-bz2]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-cgi]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-cli]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-common]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-curl]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-dba]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-dev]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-enchant]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-fpm]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-gd]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-gmp]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-imap]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-interbase]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-intl]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-ldap]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

  • [php8.2-mbstring]Not affected

    Source package: [php8.2]

    Details (4)
    • 8.2.32-1~deb12u1 · amd64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.32-1~deb12u1 · arm64 · bookworm

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · amd64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

    • 8.2.33-1~deb12u1 · arm64 · bookworm-security

      Not affected

      nvd · php8.2 · debian · bookworm

Next results

Observed:

References