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.
Published: 2026-07-10
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Phalcon’s Encryption\\Crypt::decrypt performed HMAC tag verification with a PHP/Zephir identity comparison that short‑circuits on the first mismatched byte. This implementation leak allows an attacker to measure response times and recover the valid tag one byte at a time. Once the tag is known, the attacker can attach it to any chosen IV and ciphertext, causing decrypt() to accept tampered data as authentic. The flaw is a classic timing information leak (CWE‑208) and a timing‑dependent forced return (CWE‑347).

Affected Systems

The vulnerable code exists in the Phalcon PHP framework (cphalcon) and applies to all releases before version 5.14.1. Any application using Phalcon’s built‑in encryption functions before this release is affected.

Risk and Exploitability

The CVSS score of 8.2 classifies this as high severity. The EPSS score of 0.00147 indicates a very low probability of exploitation, yet the potential for an active timing side‑channel makes exploitation feasible for remote attackers who can observe decryption responses over the network. It is not currently featured in the CISA KEV catalog. The likely attack vector is a remote network attacker sending crafted requests to an exposed application endpoint and measuring decryption timing to iteratively recover the HMAC tag.

Generated by OpenCVE AI on July 29, 2026 at 09:59 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Phalcon to version 5.14.1 or later, which implements constant‑time HMAC comparison.
  • If an upgrade is not immediately possible, replace the HMAC comparison code with a proven constant‑time implementation that does not exit early on a mismatch.
  • Audit any custom decryption logic for early‑exit comparisons and ensure constant‑time equality checks are used for all cryptographic tags.

Generated by OpenCVE AI on July 29, 2026 at 09:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Phalcon
Phalcon cphalcon
Vendors & Products Phalcon
Phalcon cphalcon

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
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.
Title Phalcon: Non-constant-time HMAC verification in `Encryption\Crypt::decrypt` (timing side-channel)
Weaknesses CWE-208
CWE-347
References
Metrics cvssV4_0

{'score': 8.2, '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'}


Subscriptions

Phalcon Cphalcon
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-13T18:01:40.822Z

Reserved: 2026-06-15T23:07:33.233Z

Link: CVE-2026-54736

cve-icon Vulnrichment

Updated: 2026-07-13T18:01:36.681Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T10:00:15Z

Weaknesses
  • CWE-208

    Observable Timing Discrepancy

  • CWE-347

    Improper Verification of Cryptographic Signature