GHSA-q445-7m23-qrmw
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- Low
What each source reports
GitHub Advisories Score used 6.9
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
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.
- Record
GHSA-q445-7m23-qrmw- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-476
- Updated
- 2026-11-02
OSV 6.9
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
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.
- Record
GHSA-q445-7m23-qrmw- CVSS 4.0
- 6.9 Medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L - Weakness
- CWE-476
- Updated
- 2026-11-02
OSVRUSTSEC-2024-0357No score
`MemBio::get_buf` has undefined behavior with empty buffers
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.
- Record
RUSTSEC-2024-0357- Updated
- 2026-11-02
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
GHSA-q445-7m23-qrmw is a medium vulnerability (CVSS 6.9) in openssl, published July 21, 2024. No source lists public exploit code. Fixed in openssl 0.10.66.
References
github.com/sfackler/rust-openssl/pull/2266
github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb
github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66
rustsec.org/advisories/RUSTSEC-2024-0357.html
github.com/advisories/GHSA-q445-7m23-qrmw
github.com/sfackler/rust-openssl
crates.io/crates/openssl