Vulnerability GHSA-h84h-g58v-xg2h

Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
18 hours ago
December 03, 2026 at 09:08 PM UTC
Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0
4.0.0-BETA2 - 12.72.0 and 13.0.0 - 13.42.0

Summary

Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service

Details

Impact

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.

Patches

The 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.

Workarounds

Use 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.

Impacted packages

Timeline

Published
18 hours ago
December 03, 2026 at 09:08 PM UTC
Fixed (12.73.0)
17 days ago
November 17, 2026 at 02:54 PM UTC
Fixed (13.43.0)
17 days ago
November 17, 2026 at 02:58 PM UTC
Last Modified
18 hours ago
December 03, 2026 at 09:15 PM UTC