BuzzPHP
LightDarkSystem

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?

PackageAffected versionsFixed in
phalcon/cphalcon (opens in a new tab)<= 5.14.05.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 audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-54736 (opens in a new tab)
GHSAGHSA-8jqh-95g6-7jpj (opens in a new tab)
WeaknessCWE-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

All Composer security advisories