CVE-2026-7258
Denial of Service via improper handling of signed characters in ctype functions
| Publication Date | 2026-05-10 |
|---|---|
| Severity | Moderate |
| Type | Denial of Service |
| Affected PHP Versions |
|
| Fixed Product Versions |
|
CVE Details
A flaw was found in PHP. Some functions, including urldecode(), incorrectly pass signed characters to character type (ctype) functions. On certain systems, this can lead to accessing memory with a negative offset. This vulnerability can be exploited by an attacker to trigger a denial of service (DoS), making the affected PHP application or system unavailable.
Recommendations
Do not trust user-submitted URLs; if you must, consider using rawurldecode() or filter_var() with the FILTER_SANITIZE_URL flag instead of urldecode().
Users should update to a PHP version patched against this vulnerability.