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

- Severity: Medium 6.3 (CVSS:4.0, scored by php) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-02)
- Published: 2026-05-10T04:28:14.520Z
- Modified: 2026-09-10T16:01:45.484Z
- Also known as: BIT-LIBPHP-2026-7258, BIT-PHP-2026-7258, BIT-PHP-MIN-2026-7258, GHSA-m8rr-4c36-8gq4
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.2.* before 8.2.31; from 8.3.* before 8.3.31; from 8.4.* before 8.4.21; from 8.5.* before 8.5.6
- php php: from 8.2.0 before 8.2.21; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- libphp (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6
- php-min (Bitnami): from 8.2.0 before 8.2.31; from 8.3.0 before 8.3.31; from 8.4.0 before 8.4.21; from 8.5.0 before 8.5.6

## Every score

- php: CVSS:4.0 6.3 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/php/php-src/security/advisories/GHSA-m8rr-4c36-8gq4> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-7258> (web)

## Sources

- CVE List: [CVE-2026-7258](https://www.cve.org/CVERecord?id=CVE-2026-7258), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-7258](https://nvd.nist.gov/vuln/detail/CVE-2026-7258), Public domain, modified 2026-07-24
- Bitnami Vulnerability Database: [BIT-LIBPHP-2026-7258](https://osv.dev/vulnerability/BIT-LIBPHP-2026-7258), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PHP-2026-7258](https://osv.dev/vulnerability/BIT-PHP-2026-7258), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2026-7258](https://osv.dev/vulnerability/BIT-PHP-MIN-2026-7258), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-7258 · Whole record: https://cve.day/CVE-2026-7258.json · Rebuilt by cve.day 2026-11-25T22:59:21.166Z
