cvelo
P3 · MediumCVSS 5.3EPSS 0.6%

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

  • CVE-2026-142644
  • GHSA-h84h-g58v-xg2h
  • EUVD-2026-141972

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • laravel framework

    Affected versionsFixed in
    >= 13.0.0, < 13.43.0none stated
    < 12.73.0none stated
  • laravel/frameworkPackagist

    Affected versionsFixed in
    from 13.0.0 to before 13.43.013.43.0
    before 12.73.012.73.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.