Advisory

RUSTSEC-2019-0007

Also known as: CVE-2019-15549, GHSA-v5r6-6r3c-wqxc

Summary

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.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2019-06-13 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

asn1_der

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.6.2 (semver)

Fixed versions

0.6.2

Fix

  • Fixed version 0.6.2
    cargo update -p asn1_der --precise 0.6.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences