Phalcon cphalcon
Phalcon: Non-constant-time HMAC verification in `Encryption\Crypt::decrypt` (timing side-channel)
Phalcon is a high-performance, full-stack PHP framework. Prior to 5.14.1, Phalcon\Encryption\Crypt::decrypt compares the attacker-supplied HMAC tag against the freshly computed HMAC using PHP/Zephir identity comparison, which lowers to a byte-wise comparison that returns early on the first differing byte. This observable timing discrepancy can allow an attacker to recover a valid tag byte-by-byte and attach it to a chosen IV and ciphertext so that decrypt() accepts tampered encrypted content as authentic. This issue is fixed in version 5.14.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.14.1
Fixed in 5.14.1
Mitigation
Upgrade cphalcon to 5.14.1 or later.
References
- Vendor advisory github.com/phalcon/cphalcon/security/advisorie…
- Patch github.com/phalcon/cphalcon/pull/17091
- Patch github.com/phalcon/cphalcon/commit/ad53ab1b2e7…
1 more
- Release notes github.com/phalcon/cphalcon/releases/tag/v5.14…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.