CVE-2026-142644: Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
Laravel is a web application framework. Prior to 13.43.0 and 12.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 isnumeric() 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, so a low rate of such requests can exhaust the PHP worker pool and cause denial of service. This issue is fixed in versions 13.43.0 and 12.73.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.43.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 12.73.0
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Any application using a Laravel version earlier than 13.43.0 or 12.73.0 that validates a request field with the decimal rule is affected. No non-default configuration is required.
What does an attacker need to do to exploit it?
An attacker can send a large request containing a very long sequence of digits followed by an exponent, such as a value ending in e5, to a field validated by the decimal rule. No authentication or user interaction is required.
What is the likely operational impact?
A single large request can consume several seconds of PHP worker CPU. A low rate of malicious requests may therefore exhaust the PHP worker pool and deny service to legitimate users.
How can this be remediated?
Upgrade Laravel to version 13.43.0 or 12.73.0, depending on the supported release line in use.