HistoryEdit

RUSTSEC-2019-0007

Processing of maliciously crafted length fields causes memory allocation SIGABRTs

Reported
Issued
Package
asn1_der (crates.io)
Type
Vulnerability
Keywords
#dos
Aliases
Details
https://github.com/KizzyCode/asn1_der/issues/1
CVSS Score
7.5 HIGH
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Patched
  • >=0.6.2

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.