openssl's `MemBio::get_buf` has undefined behavior with empty buffers
Priority LOW 38CWE-476Published · Updated
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-476.
Summary
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.
Why it matters now
Fix Fixed openssl (crates.io): 0.10.66
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | openssl (crates.io) | before 0.10.66 | 0.10.66 | Patch available | GHSA-q445-7m23-qrmw |
- openssl (crates.io) Vendor— Affected before 0.10.66 Fixed in 0.10.66 Patch available GHSA-q445-7m23-qrmw
Remediation
- Fix · GHSA-q445-7m23-qrmw openssl (crates.io) Fixed in 0.10.66 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-q445-7m23-qrmw
References
Other 5
- https://github.com/sfackler/rust-openssl/pull/2266
- https://github.com/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb
- https://github.com/sfackler/rust-openssl
- https://github.com/sfackler/rust-openssl/releases/tag/openssl-v0.10.66
- https://rustsec.org/advisories/RUSTSEC-2024-0357.html
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences