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

Published May 7, 2026
·
Updated

Fixed (Consistently pass unsigned char to ctype.h functions). (CVE-2026-7258)

Other sources

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.

Red Hat

Affected Software

5 affected componentsFixes available
PHP PHP<8.5.6
8.5.6
PHP PHP>=8.2.0<8.2.21
PHP PHP>=8.3.0<8.3.31
PHP PHP>=8.4.0<8.4.21
PHP PHP>=8.5.0<8.5.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.5.6
  2. Upgrade

    Upgrade php to a version that resolves this vulnerability.

    Fixed in 8.2.31
  3. Upgrade

    Upgrade php to a version that resolves this vulnerability.

    Fixed in 8.3.31
  4. Upgrade

    Upgrade php to a version that resolves this vulnerability.

    Fixed in 8.4.21
  5. Upgrade

    Upgrade php to a version that resolves this vulnerability.

    Fixed in 8.5.6

Event History

May 7, 2026
CVE Published
via PHP·12:00 AM
Data Sourced
via PHP·12:00 AM
DescriptionAffected Software
May 10, 2026
CVE Published
via MITRE·04:28 AM
Data Sourced
via MITRE·04:28 AM
DescriptionWeakness
Data Sourced
via Red Hat·05:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-7258?

CVE-2026-7258 has a medium severity level due to its potential to cause information disclosure through out-of-bounds read vulnerabilities.

2

How do I fix CVE-2026-7258?

To fix CVE-2026-7258, upgrade to PHP version 8.5.6 or later.

3

Which versions of PHP are affected by CVE-2026-7258?

CVE-2026-7258 affects 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.

4

What functions are impacted by CVE-2026-7258?

CVE-2026-7258 specifically impacts functions such as urldecode() due to the improper handling of signed char data.

5

Is CVE-2026-7258 fixed in the latest PHP version?

Yes, CVE-2026-7258 is fixed in PHP version 8.5.6 and subsequent releases.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203