CVE-2026-142610: Laravel: Numeric validation can exhaust resources via extreme exponent input
Laravel is a web application framework. Prior to 12.74.0 and 13.44.1, The multipleof validation rule, and the gt, gte, lt and lte rules when they compare against another numeric field, expand numeric input using arbitrary-precision arithmetic without bounding its exponent. A request containing a very small or very large exponent value, such as one in scientific notation, can cause excessive memory and CPU use and may exhaust PHP's memory limit. Applications are affected when these rules are applied to an unbounded numeric field, with no preceding bounding rule such as min, max or between combined with bail. Comparisons against literal numbers, and the min, max, between and size rules, are not affected. This issue is fixed in versions 12.74.0 and 13.44.1.
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 12.74.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 13.44.1
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications are affected when they apply multiple_of, or gt, gte, lt, or lte comparisons against another numeric field, to an unbounded numeric input. The input must not have a preceding min, max, or between bound combined with bail.
What does an attacker need to send to trigger resource exhaustion?
An unauthenticated remote attacker can submit a numeric value with an extremely large or small exponent, including scientific notation. Processing that value through an affected validation rule can consume excessive CPU and memory and exhaust PHP's memory limit.
Are all Laravel numeric validation rules affected?
No. Comparisons against literal numbers are not affected, and neither are the min, max, between, or size rules. The affected comparisons are only gt, gte, lt, and lte when comparing to another numeric field, along with multiple_of.
What can be done before updating Laravel?
Add a preceding min, max, or between validation rule together with bail for numeric fields evaluated by the affected rules. This prevents the vulnerable arbitrary-precision expansion from being reached for out-of-range values.
Which versions contain the fix?
The issue is fixed in Laravel versions 12.74.0 and 13.44.1.