Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. openssl
  4. ›
  5. GHSA-q445-7m23-qrmw

GHSA-q445-7m23-qrmw: openssl's `MemBio::get_buf` has undefined behavior with empty buffers

July 22, 2024

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.

References

  • github.com/advisories/GHSA-q445-7m23-qrmw
  • github.com/sfackler/rust-openssl
  • github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb
  • github.com/sfackler/rust-openssl/pull/2266
  • github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66
  • rustsec.org/advisories/RUSTSEC-2024-0357.html

Code Behaviors & Features

Detect and mitigate GHSA-q445-7m23-qrmw with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.10.66

Fixed versions

  • 0.10.66

Solution

Upgrade to version 0.10.66 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

cargo/openssl/GHSA-q445-7m23-qrmw.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:23 +0000.