Phalcon: Non-constant-time HMAC verification in `Encryption\Crypt::decrypt` (timing side-channel)
High severity. Published 28 August 2026. Update phalcon/cphalcon to 5.14.1 or later: composer update phalcon/cphalcon.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| phalcon/cphalcon (opens in a new tab) | <= 5.14.0 | 5.14.1 |
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-54736 (opens in a new tab) |
| GHSA | GHSA-8jqh-95g6-7jpj (opens in a new tab) |
| Weakness | CWE-208, CWE-347 |
What the advisory says
Summary
Phalcon\Encryption\Crypt provides authenticated encryption: when useSigning is enabled (the default), encrypt() appends an HMAC tag and decrypt() verifies it before returning the plaintext. The verification compares the attacker-supplied tag against the freshly computed HMAC using PHP/Zephir identity comparison (!==), which the Zephir compiler lowers to !ZEPHIRISIDENTICAL(...) — a byte-wise memcmp that returns early on the first differing byte. The comparison time therefore depends on how many leading bytes of the supplied tag are correct, a classic MAC-verification timing side-channel.
Source: GHSA-8jqh-95g6-7jpj (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: Catastrophic backtracking (ReDoS) in the default Phalcon Router route lead to remote unauthenticated DoS (high, 28 August 2026)
- Phalcon Volt compiler `join` filter compile-time PHP code injection (SSTI leads to RCE) (critical, 21 August 2026)