tls_codec is vulnerable to Denial of Service (DoS)
65
Medium Risk
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.
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.
tls_codec is vulnerable to Denial of Service (DoS) in versions 0.2.0 - 0.4.2.
Upgrade the tls_codec library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant