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?
| Package | Affected versions | Fixed in |
|---|---|---|
| phalcon/cphalcon (opens in a new tab) | <= 5.14.2 | 5.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 auditAdvisory details
| Severity | High |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-57584 (opens in a new tab) |
| GHSA | GHSA-x7rj-f32v-7jjg (opens in a new tab) |
| Weakness | CWE-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
- Phalcon: Non-constant-time HMAC verification in `Encryption\Crypt::decrypt` (timing side-channel) (high, 28 August 2026)
- Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI leads to RCE) (critical, 21 August 2026)