Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
Summary
| CVE | CVE-2026-142644 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 23:18:43 UTC |
| Updated | 2026-12-02 23:18:43 UTC |
| Description | 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 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, 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. |
Risk And Classification
Primary CVSS: v3.1 5.3 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Problem Types: CWE-1333 | CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| 3.1 | CNA | DECLARED | 5.3 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
LowCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/laravel/framework/commit/77eafa57acd2e5a9fb70d9d8f9a0619c81ac... | [email protected] | github.com | |
| github.com/laravel/framework/releases/tag/v12.73.0 | [email protected] | github.com | |
| github.com/laravel/framework/commit/aeaf7f9bddb349acb0532da1d4b578808038... | [email protected] | github.com | |
| github.com/laravel/framework/pull/62421 | [email protected] | github.com | |
| github.com/laravel/framework/security/advisories/GHSA-h84h-g58v-xg2h | [email protected] | github.com | |
| github.com/laravel/framework/pull/62420 | [email protected] | github.com | |
| github.com/laravel/framework/releases/tag/v13.43.0 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.