Advisory

GHSA-q445-7m23-qrmw

Also known as: RUSTSEC-2024-0357

Summary

openssl's 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

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-07-22 17:34 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences