Laravel: Numeric validation can exhaust resources via extreme exponent input
Published 4 Dec 2026 · Updated 4 Dec 2026
Affected packages
- Affected
- <12.74.0
- Fixed in
- 12.74.0
composer require laravel/framework:^12.74.0- Affected
- >=13.0.0 <13.44.1
- Fixed in
- 13.44.1
composer require laravel/framework:^13.44.1Which laravel/framework does your project really install?
Works for private projects: the file is read in memory to run the scan and then dropped. Also reads composer.json.
Public repo?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Details
Impact
The multiple_of 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.
Patches
The fix applies the framework's existing exponent range guard to these rules. It has been merged to the 12.x and 13.x branches: https://github.com/laravel/framework/pull/62589 and https://github.com/laravel/framework/pull/62590.
Workarounds
Bound the value before the affected rule and stop on failure, for example bail|numeric|min:0|max:100|multiple_of:2. Setting a low PHP memory limit can also make PHP stop early with a fatal error.
Is GHSA-c25c-x5r7-2v5m in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected laravel/framework, and gives you the command that fixes it.
More advisories for laravel/framework
- LowCVE-2026-142622Laravel: Cross-Origin Auth Token Leakage Through Broadcasting JSONP Callback · 3 Dec 2026
- MediumCVE-2026-142637Laravel: Fluent Rule::exists() and Rule::unique() where() values can be interpreted as reserved predicates instead of literal values · 3 Dec 2026
- MediumCVE-2026-142644Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service · 3 Dec 2026
- MediumCVE-2026-142649Laravel: `in` / `Rule::in` validation rule bypass via loose comparison · 3 Dec 2026
- MediumCVE-2026-142643Laravel: Validation exists rule can be bypassed with integer or boolean input on MySQL/MariaDB · 3 Dec 2026
- MediumCVE-2026-142624 Laravel: Nested sometimes validation rules skipped when value is __missing__ · 3 Dec 2026
References
- Linkgithub.com/laravel/framework/security/advisories/GHSA-c25c-x5r7-2v5m
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-142610
- Linkgithub.com/laravel/framework/pull/62589
- Linkgithub.com/laravel/framework/pull/62590
- Linkgithub.com/laravel/framework/commit/bfb21ce13956c4ed4e38c3011d98bc96c509223d
- Linkgithub.com/laravel/framework/commit/d3dfc8cfa8e6966febddfb7c8914fa6d8f39d1f5
- Packagegithub.com/laravel/framework
- Linkgithub.com/laravel/framework/releases/tag/v12.74.0
- Linkgithub.com/laravel/framework/releases/tag/v13.44.1
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.