p PatchFirst

CVE-2026-7259

CVE-2026-7259 · Null pointer dereference in php_mb_check_encoding() via mb_ereg_search_init()

This page contains facts from public vulnerability sources. Check the original advisory before updating.

In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, a mismatch between encoding lists in Oniguruma and mbfl leads to  a NULL pointer dereference, resulting in a segmentation fault and denial of service. The vulnerability is exploitable when user-controlled input can influence the encoding passed to mb_regex_encoding().

CVSS 2.1 · Low · EPSS 0.2% · Fix available

Published
Updated

Stack: system · php

Affected products and versions

  • php

    Versions
    • ≥ 8.2.*, < 8.2.31: Affected (semver)
    • ≥ 8.3.*, < 8.3.31: Affected (semver)
    • ≥ 8.4.*, < 8.4.21: Affected (semver)
    • ≥ 8.5.*, < 8.5.6: Affected (semver)

    Update to 8.2.31; Update to 8.3.31; Update to 8.4.21; Update to 8.5.6

  • php8.2 Debian:12

    Versions
    • 8.2.10-1
    • 8.2.10-2
    • 8.2.12-1
    • 8.2.16-1
    • 8.2.16-2
    • 8.2.17-1
    • 8.2.18-1
    • 8.2.18-1~deb12u1
    • 8.2.20-1~deb12u1
    • 8.2.20-2
    • 8.2.20-3
    • 8.2.21-1
    • 8.2.23-1
    • 8.2.24-1
    • 8.2.24-1~deb12u1
    • 8.2.26-1~deb12u1
    • 8.2.26-4
    • 8.2.27-1
    • 8.2.28-1~deb12u1
    • 8.2.29-1~deb12u1
    • 8.2.30-1~deb12u1
    • 8.2.5-2
    • 8.2.7-1
    • 8.2.7-1.1
    • 8.2.7-1.2
    • 8.2.7-1~deb12u1
    Affected ranges
    • ECOSYSTEM: < 8.2.31-1~deb12u1

    Update to 8.2.31-1~deb12u1

  • php8.4 Debian:13

    Versions
    • 8.4.11-1
    • 8.4.16-1
    • 8.4.16-1~deb13u1
    • 8.4.20-1
    Affected ranges
    • ECOSYSTEM: < 8.4.21-1~deb13u1

    Update to 8.4.21-1~deb13u1

  • php8.4 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
    Affected ranges
    • ECOSYSTEM: < 8.4.21-1

    Update to 8.4.21-1

  • php8.1 Ubuntu:22.04:LTS

    Versions
    • 8.1.0~rc4-1ubuntu2
    • 8.1.0-1
    • 8.1.2-1ubuntu1
    • 8.1.2-1ubuntu2
    • 8.1.2-1ubuntu2.1
    • 8.1.2-1ubuntu2.2
    • 8.1.2-1ubuntu2.3
    • 8.1.2-1ubuntu2.4
    • 8.1.2-1ubuntu2.5
    • 8.1.2-1ubuntu2.6
    • 8.1.2-1ubuntu2.8
    • 8.1.2-1ubuntu2.9
    • 8.1.2-1ubuntu2.10
    • 8.1.2-1ubuntu2.11
    • 8.1.2-1ubuntu2.13
    • 8.1.2-1ubuntu2.14
    • 8.1.2-1ubuntu2.15
    • 8.1.2-1ubuntu2.17
    • 8.1.2-1ubuntu2.18
    • 8.1.2-1ubuntu2.19
    • 8.1.2-1ubuntu2.20
    • 8.1.2-1ubuntu2.21
    • 8.1.2-1ubuntu2.22
    • 8.1.2-1ubuntu2.23
    Affected ranges
    • ECOSYSTEM: < 8.1.2-1ubuntu2.24

    Update to 8.1.2-1ubuntu2.24

  • php8.3 Ubuntu:24.04:LTS

    Versions
    • 8.3.0-1
    • 8.3.0-1ubuntu1
    • 8.3.4-1
    • 8.3.4-1build1
    • 8.3.6-0maysync1
    • 8.3.6-0ubuntu0.24.04.1
    • 8.3.6-0ubuntu0.24.04.2
    • 8.3.6-0ubuntu0.24.04.3
    • 8.3.6-0ubuntu0.24.04.4
    • 8.3.6-0ubuntu0.24.04.5
    • 8.3.6-0ubuntu0.24.04.6
    • 8.3.6-0ubuntu0.24.04.7
    • 8.3.6-0ubuntu0.24.04.8
    Affected ranges
    • ECOSYSTEM: < 8.3.6-0ubuntu0.24.04.9

    Update to 8.3.6-0ubuntu0.24.04.9

  • php8.4 Ubuntu:25.10

    Versions
    • 8.4.5-1ubuntu1
    • 8.4.8-1ubuntu1
    • 8.4.11-1ubuntu1
    • 8.4.11-1ubuntu1.1
    Affected ranges
    • ECOSYSTEM: < 8.4.11-1ubuntu1.2

    Update to 8.4.11-1ubuntu1.2

  • php8.5 Ubuntu:26.04:LTS

    Versions
    • 8.5.2-0ubuntu1
    • 8.5.4-0ubuntu1
    Affected ranges
    • ECOSYSTEM: < 8.5.4-0ubuntu1.1

    Update to 8.5.4-0ubuntu1.1

Original sources

Check your server →