CVE-2026-7258 PUBLISHED

Out-of-bounds read in urldecode() on NetBSD

Assigner: php
Reserved: 28.04.2026 Published: 10.05.2026 Updated: 10.05.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L/U:Amber
CVSS Score: 6.3

Product Status

Vendor PHP Group
Product PHP
Versions Default: affected
  • affected from 8.2.* to 8.2.31 (excl.)
  • affected from 8.3.* to 8.3.31 (excl.)
  • affected from 8.4.* to 8.4.21 (excl.)
  • affected from 8.5.* to 8.5.6 (excl.)

Credits

  • xfourj reporter
  • Ilija Tovilo remediation developer

References

Problem Types

  • CWE-125 Out-of-bounds Read CWE