Intel

AIKIDO-2026-850672

tls_codec is vulnerable to Denial of Service (DoS)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 23, 2026
July 23, 2026

65

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The crate decodes TLS-encoded element vectors and byte vectors from input using length-prefixed deserialization. Element-vector decoding does not reject zero-length elements that never advance the read cursor, so a crafted element can drive an infinite loop and unbounded memory growth, while byte-vector decoding eagerly allocates a buffer sized directly from the untrusted length prefix. A malicious peer can supply a small message that hangs the decoder or exhausts available memory. The fix rejects zero-length elements, enforces the declared vector length by measuring actual byte consumption, caps eager allocations, and uses checked arithmetic to avoid length overflow.

How do I fix this?

Upgrade the tls_codec library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and deserialize TLS-encoded vectors or byte vectors from untrusted or externally supplied input.

Package

Versions

0.2.0 - 0.4.2

Fixed in 0.5.0

Background info

tls_codec is vulnerable to Denial of Service (DoS) in versions 0.2.0 - 0.4.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea