Advisory

RUSTSEC-2020-0038

Also known as: CVE-2020-35890, CVE-2020-35891, GHSA-4wj3-p7hj-cvx8, GHSA-qrwc-jxf5-g8x6

Summary

Memory safety issues in compact::Vec

Details

compact::Vec contains multiple memory safety issues.

  1. It mishandles large capacity and causes out-of-bound access in 32-bit / allocator layout mismatch in 64-bit.
  2. remove() is not panic-safe and causes double-free when an index larger than the length is provided.

Severity

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

Dates

Published
2020-09-03 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

ordnung

crates.io · All systems

Affected

  • introduced 0.0.0-0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

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