Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-6104

Type: advisorySource: OSV1 source record

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.

Announced Source revision 1
Original source ↗

DEBIAN-CVE-2026-6104

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-6104

php8.4

Source reference: /affected/0/package/name

Affected versions
8.4.11-1

Source reference: /affected/0/versions

8.4.16-1

Source reference: /affected/0/versions

8.4.16-1~deb13u1

Source reference: /affected/0/versions

8.4.20-1

Source reference: /affected/0/versions

Fixed versions
8.4.21-1~deb13u1

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

php8.4

Source reference: /affected/1/package/name

Affected versions
8.4.11-1

Source reference: /affected/1/versions

8.4.16-1

Source reference: /affected/1/versions

8.4.16-1~deb13u1

Source reference: /affected/1/versions

8.4.20-1

Source reference: /affected/1/versions

8.4.21-1~deb13u1

Source reference: /affected/1/versions

Fixed versions
8.4.21-1

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "8.4.21-1~deb13u1"
          }
        ]
      }
    ],
    "package": {
      "name": "php8.4",
      "purl": "pkg:deb/debian/php8.4?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "8.4.11-1",
      "8.4.16-1",
      "8.4.16-1~deb13u1",
      "8.4.20-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6104.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "8.4.21-1"
          }
        ]
      }
    ],
    "package": {
      "name": "php8.4",
      "purl": "pkg:deb/debian/php8.4?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "8.4.11-1",
      "8.4.16-1",
      "8.4.16-1~deb13u1",
      "8.4.20-1",
      "8.4.21-1~deb13u1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-6104.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58072 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement