PT-2019-14265 · Rust · Asn1 Der
Published
2019-06-13
·
Updated
2021-08-25
·
CVE-2019-15549
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
asn1 der crate versions prior to 0.6.2
Description
The issue allows attackers to trigger memory exhaustion by supplying a large value in the
length field of the ASN.1-DER length field. This is possible because affected versions of the crate tried to preallocate a vector for an arbitrary amount of bytes announced by the ASN.1-DER length field without further checks, allowing an attacker to trigger a SIGABRT by creating length fields that announce more bytes than the allocator can provide.Recommendations
For versions prior to 0.6.2, update to version 0.6.2 or later to resolve the issue. As a temporary workaround, consider implementing checks on the length field to prevent excessive memory allocation until a patch is applied.
Fix
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Asn1 Der