GHSA-q445-7m23-qrmw json
openssl's `MemBio::get_buf` has undefined behavior with empty buffers
published 2y ago modified 2mo ago also RUSTSEC-2024-0357
- cvss
- 6.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io openssl 0.10.66
Is GHSA-q445-7m23-qrmw in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | openssl | <0.10.66 >=0.0.0-0, <0.10.66 |
0.10.66 |
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
github.com
/sfackler/rust-openssl/pull/2266
web
-
github.com
/sfackler/rust-openssl/commit/aef36e0f3950653148d6644309ee41ccf16e02bb
web
-
github.com
/sfackler/rust-openssl
package
-
github.com
/sfackler/rust-openssl/releases/tag/openssl-v0.10.66
web
-
rustsec.org
/advisories/RUSTSEC-2024-0357.html
web, advisory
-
crates.io
/crates/openssl
package
Sources
- GitHub Advisory GHSA-q445-7m23-qrmw
- OSV RUSTSEC-2024-0357
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.