RUSTSEC-2024-0357
MEDIUM 6.5CVSS 3.1openssl'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.
- Published
- 21 Jul 2024
- Last modified
- 10 Sep 2026
- Weakness
- CWE-476
- Also known as
- GHSA-q445-7m23-qrmw
- Sources
- OSV GHSA-q445-7m23-qrmwJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | openssl | < 0.10.66 | 0.10.66 |
| OSV | crates.io | openssl | >= 0.0.0-0, < 0.10.66 | 0.10.66 |
References
- https://github.com/sfackler/rust-openssl/pull/2266 · WEB
- https://github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb · WEB
- https://github.com/sfackler/rust-openssl · PACKAGE
- https://github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66 · WEB
- https://rustsec.org/advisories/RUSTSEC-2024-0357.html · WEB, ADVISORY
- https://crates.io/crates/openssl · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Jul 2024)