Bug 2494666 (CVE-2026-13758) - CVE-2026-13758 CryptX: CryptX for Perl: Message forgery via non-constant time AEAD tag comparison
Summary: CVE-2026-13758 CryptX: CryptX for Perl: Message forgery via non-constant time...
Keywords:
Status: NEW
Alias: CVE-2026-13758
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2494712 2494713
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-29 21:02 UTC by OSIDB Bzimport
Modified: 2026-06-29 21:42 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-06-29 21:02:27 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.