Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service
受影响
| 软件包 | 受影响版本 | 修复版本 |
|---|---|---|
| composer:laravel/framework | >= 13.0.0, < 13.43.0 | 13.43.0 |
| composer:laravel/framework | < 12.73.0 | 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,…
在 X 上接收快讯漏洞利用、重大泄露和故障,附应对措施。
关注 @vulnpulse_app2026/12/04 06:08,GitHub Advisory Database 发布了“Laravel: Quadratic regex backtracking in the decimal validation rule can cause denial of service”(类型:漏洞公告)。严重程度为“中危”(medium)。相关技术:PHP、Laravel。CVE:CVE-2026-142644。