CVE-2026-54736: CWE-208: Observable Timing Discrepancy in phalcon cphalcon
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.
AI Analysis
Technical Summary
Phalcon's Crypt::decrypt method in versions before 5.14.1 performs HMAC tag verification using a PHP/Zephir identity comparison that reduces to a byte-wise comparison returning early upon the first byte difference. This creates an observable timing discrepancy (CWE-208) that can be exploited to recover a valid HMAC tag byte-by-byte. An attacker can then attach this valid tag to a chosen initialization vector (IV) and ciphertext, causing decrypt() to accept tampered encrypted content as authentic. This vulnerability is addressed in Phalcon version 5.14.1.
Potential Impact
An attacker can exploit the timing discrepancy to recover a valid HMAC tag incrementally, enabling them to forge encrypted content that decrypt() will accept as authentic. This compromises the integrity of encrypted data, potentially allowing unauthorized data manipulation without detection.
Mitigation Recommendations
Upgrade Phalcon cphalcon to version 5.14.1 or later, where this timing discrepancy vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
CVE-2026-54736: CWE-208: Observable Timing Discrepancy in phalcon cphalcon
Description
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.
CVSS v4.0
Score 8.2high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Phalcon's Crypt::decrypt method in versions before 5.14.1 performs HMAC tag verification using a PHP/Zephir identity comparison that reduces to a byte-wise comparison returning early upon the first byte difference. This creates an observable timing discrepancy (CWE-208) that can be exploited to recover a valid HMAC tag byte-by-byte. An attacker can then attach this valid tag to a chosen initialization vector (IV) and ciphertext, causing decrypt() to accept tampered encrypted content as authentic. This vulnerability is addressed in Phalcon version 5.14.1.
Potential Impact
An attacker can exploit the timing discrepancy to recover a valid HMAC tag incrementally, enabling them to forge encrypted content that decrypt() will accept as authentic. This compromises the integrity of encrypted data, potentially allowing unauthorized data manipulation without detection.
Mitigation Recommendations
Upgrade Phalcon cphalcon to version 5.14.1 or later, where this timing discrepancy vulnerability is fixed. No other mitigation is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-15T23:07:33.233Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a51650f68715ace433b3d16
Added to database: 07/10/2026, 21:33:03 UTC
Last enriched: 07/18/2026, 15:28:15 UTC
Last updated: 08/24/2026, 05:17:08 UTC
Views: 90
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.