medium6.5No CVE yet
GHSA-q445-7m23-qrmw
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
Impact
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.
An attacker can exploit this over the network, without logging in, without any action by a user. If it succeeds: low risk of data or systems being changed, low risk of outages.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | openssl | < 0.10.66 | 0.10.66 |
Weakness classification
References
- GitHub advisory
- https://github.com/advisories/GHSA-q445-7m23-qrmw
- https://github.com/sfackler/rust-openssl/pull/2266
- https://github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb
- https://github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66
- https://rustsec.org/advisories/RUSTSEC-2024-0357.html