{"id":"CVE-2026-142644","aliases":["GHSA-h84h-g58v-xg2h"],"url":"https://o3.security/vulnerability/CVE-2026-142644","summary":"Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service","details":"### Impact\n\nThe `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.\n\n### Patches\n\nThe fix makes the regular expression's quantifiers possessive, which removes the backtracking without changing validation results. Fixes have been proposed for the 13.x and 12.x branches in https://github.com/laravel/framework/pull/62420 and https://github.com/laravel/framework/pull/62421.\n\n### Workarounds\n\nUse the `bail` rule and order a size-limiting rule such as `max` or `digits_between` before `decimal`, so oversized values are rejected before the `decimal` rule runs.","published":"2026-12-02T22:54:07.335Z","modified":"2026-12-03T21:02:14.021239025Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"13.43.0"},{"ecosystem":"Packagist","name":"laravel/framework","fixedVersion":"12.73.0"}],"fix":{"url":"https://github.com/laravel/framework/commit/77eafa57acd2e5a9fb70d9d8f9a0619c81acc9e3","label":"laravel/framework@77eafa5"},"references":[{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v12.73.0"},{"type":"WEB","url":"https://github.com/laravel/framework/releases/tag/v13.43.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142644.json"},{"type":"ADVISORY","url":"https://github.com/laravel/framework/security/advisories/GHSA-h84h-g58v-xg2h"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142644"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/77eafa57acd2e5a9fb70d9d8f9a0619c81acc9e3"},{"type":"FIX","url":"https://github.com/laravel/framework/commit/aeaf7f9bddb349acb0532da1d4b5788080388ba1"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62420"},{"type":"FIX","url":"https://github.com/laravel/framework/pull/62421"},{"type":"PACKAGE","url":"https://github.com/laravel/framework"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-03T21:02:14.021239025Z"}}