BuzzPHP
LightDarkSystem

Phalcon: Catastrophic backtracking (ReDoS) in the default Phalcon Router route lead to remote unauthenticated DoS

High severity. Published 28 August 2026. Update phalcon/cphalcon to 5.15.0 or later: composer update phalcon/cphalcon.

Which versions are affected?

PackageAffected versionsFixed in
phalcon/cphalcon (opens in a new tab)<= 5.14.25.15.0

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show phalcon/cphalcon
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-57584 (opens in a new tab)
GHSAGHSA-x7rj-f32v-7jjg (opens in a new tab)
WeaknessCWE-1333

What the advisory says

Summary

Every Phalcon MVC application built with a default router (new Phalcon\Mvc\Router() or new Phalcon\Mvc\Router(true), which is the normal case) registers a built-in route whose compiled PCRE pattern is ^/([\w0-9\\-]+)/([\w0-9\.\]+)(/.)$u. The trailing (/.) is a nested quantifier whose group body (/.) overlaps itself (. matches /, and there is no s/DOTALL flag), so when the final $ is forced to fail the engine explores roughly 2^(N/2) ways to split a run of N slashes, causing classic catastrophic backtracking.

Source: GHSA-x7rj-f32v-7jjg (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories