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

High severity, published 2026-08-28. Update phalcon/cphalcon to 5.15.0 or later: composer update phalcon/cphalcon.

Canonical URL: https://buzzphp.com/security/ghsa-x7rj-f32v-7jjg · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-08-28 |
| Updated | 2026-08-28 |
| CVE | [CVE-2026-57584](https://nvd.nist.gov/vuln/detail/CVE-2026-57584) |
| GHSA | [GHSA-x7rj-f32v-7jjg](https://github.com/advisories/GHSA-x7rj-f32v-7jjg) |
| Weakness | CWE-1333 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| phalcon/cphalcon | <= 5.14.2 | 5.15.0 |

## What to do

Update phalcon/cphalcon to 5.15.0 or later: composer update phalcon/cphalcon.

Check which version you run with `composer show phalcon/cphalcon`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-x7rj-f32v-7jjg on GitHub](https://github.com/advisories/GHSA-x7rj-f32v-7jjg)
- [CVE-2026-57584 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-57584)
- [All Composer security advisories](https://buzzphp.com/security)
