p PatchFirst

CVE-2026-7258

CVE-2026-7258 · Out-of-bounds read in urldecode() on NetBSD

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, some functions, including urldecode(), pass signed char to ctype functions (like isxdigit()). On the systems with default signed char and optimized table-lookup ctype functions - such as NetBSD - this can lead to accessing array with negative offset, which can trigger a denial of service.

CVSS 6.3 · Medium · EPSS 0.4% · 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.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 →