RUSTSEC-2019-0007

Processing of maliciously crafted length fields causes memory allocation SIGABRTs

Issued
Package
asn1_der (crates.io)
Type
Vulnerability
Aliases
Details
https://github.com/KizzyCode/asn1_der/issues/1
Patched
  • >=0.6.2
Keywords
  • dos

Description

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.

More