← Vulnerabilities

MediumAdvisoryPHPLaravel

Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service

Affected

PackageAffected versionsFixed in
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.73.0

The decimal validation rule counts decimal places with a regular expression that backtracks quadratically on certain input. A very long run of digits followed by an exponent (for example, a value ending in e5) passes the rule's is_numeric() check and then forces excessive regex backtracking before the match fails. Any application that validates a request field with the decimal rule is affected, with no non-default configuration. A single large request can consume several seconds of worker CPU,…

Read on GitHub Advisory Database

On 12/04/2026, 06:08 AM, GitHub Advisory Database published "Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service" (type: Advisory). Severity is "Medium" (medium). Related technologies: PHP, Laravel. CVE: CVE-2026-142644.