{"id":"CVE-2026-54736","published":"2026-07-10T21:02:53Z","modified":"2026-07-13T18:01:40Z","title":"Phalcon: Non-constant-time HMAC verification in `Encryption\\Crypt::decrypt` (timing side-channel)","vendor":"phalcon","product":"cphalcon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0018,"percentile":0.04484,"provenance":"source"},"cwes":[{"id":"CWE-208","name":"Observable Timing Discrepancy"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/phalcon/cphalcon/security/advisories/GHSA-8jqh-95g6-7jpj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/phalcon/cphalcon/issues/17090","tags":["x_refsource_MISC"]},{"url":"https://github.com/phalcon/cphalcon/pull/17091","tags":["x_refsource_MISC"]},{"url":"https://github.com/phalcon/cphalcon/commit/ad53ab1b2e7ec59b3af92b0b37b8aaa099011137","tags":["x_refsource_MISC"]},{"url":"https://github.com/phalcon/cphalcon/releases/tag/v5.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":0.9},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"phalcon","affectedVersions":[{"vendor":"phalcon","product":"cphalcon","versions":["< 5.14.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-13T18:01:29.598956Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phalcon/cphalcon","vulnerableRanges":["<5.14.1"],"patched":["5.14.1"],"from":["GHSA-8jqh-95g6-7jpj"],"provenance":"source"}],"summary":{"text":"Phalcon's Encryption\\Crypt::decrypt in the cphalcon product compares the supplied HMAC tag with a freshly computed one using a non-constant-time comparison that returns early on the first mismatched byte, creating a timing side-channel. An attacker with network access and no authentication or user interaction can use response-timing differences to recover a valid tag byte by byte and pair it with a chosen IV and ciphertext, causing decrypt() to accept tampered content as authentic (integrity impact only); this requires that the application use Crypt::decrypt for encrypted data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:37Z"},"euvd":{"id":"EUVD-2026-43097","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-54736","published":"2026-07-10","fixed":"5.14.1","kev":false},{"cve":"CVE-2026-57584","published":"2026-07-10","fixed":"5.15.0","kev":false,"link":{"from":"CVE-2026-54736","to":"CVE-2026-57584","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:phalcon/cphalcon","fromFixed":"5.14.1","toFixed":"5.15.0","daysApart":0},{"kind":"similar","provenance":"machine","score":0.23,"basis":"same product + description similarity"}]}},{"cve":"CVE-2026-59989","published":"2026-08-21","fixed":"5.16.0","kev":false}],"package":"Packagist:phalcon/cphalcon"}}