Advisory

RUSTSEC-2024-0357

Also known as: GHSA-q445-7m23-qrmw

Summary

MemBio::get_buf has undefined behavior with empty buffers

Details

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

Severity

Not rated by the source.

Dates

Published
2024-07-21 12:00 UTC
Modified
2025-10-28 06:29 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.10.66 (semver)

Fixed versions

0.10.66

Fix

  • Fixed version 0.10.66
    cargo update -p openssl --precise 0.10.66

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