Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit AEAD ciphertext with candidate tag to target service
-
DeliveryMeasure precise server response timing per tag submission
-
ExploitRecover expected tag byte-by-byte via timing oracle
-
ExecutionConstruct fully forged authentication tag
-
ImpactSubmit forged ciphertext as authenticated message
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication Timing attack prevention
|
| Exploitation Conditions | Exploitation requires the target application to use CryptX's streaming AEAD API - specifically the decrypt_done($tag) method - with one of the five affected cipher modes: GCM, CCM, ChaCha20Poly1305, EAX, or OCB. The attacker must be able to submit arbitrarily many authentication tag candidates for the same fixed nonce, ciphertext, and associated data tuple, meaning the service must accept repeated decryption attempts without nonce invalidation, rate-limiting, or account lockout. Additionally, the attacker needs sufficiently precise timing resolution to distinguish per-byte comparison latency differences, which typically requires network co-location, a controlled low-latency path, or a very large statistical sample. Applications using only the one-shot *_decrypt_verify helpers are not vulnerable regardless of cipher mode. The CVSS PR:N metric confirms no authentication is required to reach the vulnerable code path; however, AC:H reflects the high operational complexity of achieving exploitable timing precision. |
| Impact | The CVSS 3.7 base score (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) reflects a high-complexity network attack with limited direct impact. The AC:H rating is significant - successful exploitation demands the ability to submit a large volume of tag candidates against the same nonce and ciphertext without triggering rate-limiting or nonce rotation, AND to resolve sub-millisecond or sub-microsecond timing differences across a network path, which is operationally very difficult outside of co-located or adversarially controlled environments. EPSS at 0.23% (13th percentile) indicates very low probability of automated exploitation. SSVC further corroborates this with 'Automatable: no' and 'Technical Impact: partial.' No POC has been disclosed and CISA has not added this to KEV. The NVD vector's I:N metric arguably understates the ultimate impact - successful tag recovery enables authentication forgery, which is an integrity violation not captured by C:L alone. Real-world risk is low: the attack is technically sound in adversarial lab conditions but operationally challenging against typical production deployments with rate limiting, connection logging, or nonce management. |
| Exploit ScenarioDerived | An attacker targets a Perl service that accepts AEAD-encrypted messages via CryptX's streaming decrypt_done path and returns timing-distinguishable responses. By submitting thousands of candidate authentication tags for a fixed nonce and ciphertext - cycling through each possible byte value for each tag position - and measuring precise response latency, the attacker statistically identifies which byte value causes a marginally longer comparison, recovering the expected tag byte-by-byte. After recovering all tag bytes, the attacker submits a forged ciphertext with the now-known valid authentication tag, bypassing message authentication entirely. No public POC has been identified to date. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
Non-constant-time AEAD authentication tag comparison in CryptX before 0.088_001 for Perl exposes a timing oracle in the streaming decrypt_done path, enabling authentication tag forgery across five AEAD cipher modes: GCM, CCM, ChaCha20Poly1305, EAX, and OCB. An attacker who can submit many candidate tags for a fixed nonce and ciphertext while precisely measuring response timing can recover the expected tag byte-by-byte and forge authenticated messages. No public exploit code exists and CISA has not listed this in KEV; EPSS is 0.23% (13th percentile), consistent with SSVC's 'Exploitation: none' rating at time of disclosure.
RemediationAI
Upgrade CryptX to version 0.088_001 or later, which replaces the non-constant-time memNE comparison in decrypt_done with a constant-time tag verification routine. The upstream fix diff is available at https://github.com/DCIT/perl-CryptX/commit/7e56347d420aaf43b2ee1586f4a230492ccf1642.patch and the release changelog is published at https://metacpan.org/release/MIK/CryptX-0.088_001/changes. As an interim workaround where immediate upgrade is not feasible, refactor streaming AEAD decryption to use the one-shot *_decrypt_verify helper functions instead of the streaming decrypt_done path, since those helpers perform tag comparison inside libtomcrypt using a constant-time routine. Note that migrating from streaming to one-shot mode requires buffering the entire ciphertext before decryption, which has memory implications for large payloads and may require API-level refactoring.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CryptX (CPE: cpe:2.3:a:mik:cryptx) is a Perl CPAN module wrapping libtomcrypt that provides symmetric encryption, hashing, and authenticated encryption primitives. The root cause is CWE-208 (Observable Timing Discrepancy): the streaming decrypt_done($tag) method compares the caller-supplied tag against the internally computed tag using Perl's memNE macro, which wraps memcmp() and short-circuits on the first differing byte, causing execution time to correlate directly with the number of leading bytes that match. This leaks expected tag byte values incrementally to a timing-capable attacker. The flaw spans all five AEAD modes supported by the streaming API. Critically, the one-shot *_decrypt_verify helper functions delegate tag comparison to libtomcrypt's internal constant-time routine and are entirely unaffected, so the vulnerability is isolated to the multi-step streaming API code path introduced separately from the one-shot wrappers.
Know when Cryptx gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
AC:H for required timing precision and volume; C:L for incremental tag-byte leakage; I:L added because successful exploitation enables AEAD authentication forgery not reflected in NVD's I:N.
Primary rating from Vendor (CPANSec).
CVSS VectorVendor: CPANSec
Lifecycle Timeline
2DescriptionCVE.org
CryptX versions before 0.088_001 for Perl compare AEAD authentication tags in non-constant time in the streaming decrypt_done path.
The decrypt_done($tag) form compares it against the computed tag with memNE (memcmp() != 0), which short-circuits on the first differing byte, so its run time depends on the number of matching leading bytes. This affects all five AEAD modes: GCM, CCM, ChaCha20Poly1305, EAX and OCB. The one-shot *_decrypt_verify helpers are unaffected; they verify the tag inside libtomcrypt with a constant-time comparison.
The timing difference is a tag-verification oracle. An attacker who can submit many candidate tags for the same nonce, ciphertext and associated data while measuring the timing precisely enough may recover the expected tag byte by byte and forge a message that verifies.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial-of-service via stack buffer overflow in CryptX (Perl cryptography module) versions before 0.088_001 affects four
PRNG state reuse across forked processes in CryptX for Perl allows remote attackers to recover private signing keys thro
EUVD-2026-40229
GHSA-55gr-9963-833c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB