Advisory

RUSTSEC-2021-0051

Also known as: CVE-2021-30454, GHSA-6vmq-jh76-hq43

Summary

KeyValueReader passes uninitialized memory to Read instance

Details

The KeyValueReader type in affected versions of this crate set up an
uninitialized memory buffer and passed them to be read in to a user-provided
Read instance.

The Read instance could read uninitialized memory and cause undefined
behavior and miscompilations.

This issue was fixed in commit dd59b30
by zero-initializing the buffers before passing them.

Severity

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

Dates

Published
2021-01-31 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

outer_cgi

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.2.1 (semver)

Fixed versions

0.2.1

Fix

  • Fixed version 0.2.1
    cargo update -p outer_cgi --precise 0.2.1

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