ADVISORIES

RustSec Advisory Database

RUSTSEC-2019-0007

Processing of maliciously crafted length fields causes memory allocation SIGABRTs

Details

Affected versions of this crate tried to preallocate a vector for an arbitrary amount of bytes announced by the ASN.1-DER length field without further checks.

This allows an attacker to trigger a SIGABRT by creating length fields that announce more bytes than the allocator can provide.

The flaw was corrected by not preallocating memory.

Affected packages

EcosystemPackageAffected versions
crates.ioasn1_der
From 0.0.0-0 before 0.6.2 (fixed in 0.6.2)

References