← 漏洞与更新

中危漏洞公告PHPLaravel

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

受影响

软件包受影响版本修复版本
composer:laravel/framework>= 13.0.0, < 13.43.013.43.0
composer:laravel/framework< 12.73.012.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,…

在 GitHub Advisory Database 阅读

2026/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。