Skip to main content

CryptX EUVDEUVD-2026-40229

| CVE-2026-13758 LOW
Observable Timing Discrepancy (CWE-208)
2026-06-29 CPANSec GHSA-55gr-9963-833c
3.7
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit AEAD ciphertext with candidate tag to target service
  2. Delivery
    Measure precise server response timing per tag submission
  3. Exploit
    Recover expected tag byte-by-byte via timing oracle
  4. Execution
    Construct fully forged authentication tag
  5. Impact
    Submit 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

CryptX 0 <0.088_001

Affected Packages

euvd cryptx fix: 0.088_001

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

Vendor (CPANSec) PRIMARY 3.7 LOW
AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

2
CVSS changed
Jun 30, 2026 - 14:22 NVD
3.7 (LOW)
CVE Published
Jun 29, 2026 - 20:42 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.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

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
Perl CPAN cryptographic module, niche language ecosystem deployment
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

18
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +18
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy