medium
`openssl` `X509StoreRef::objects` is unsound
- Severity
- medium rating by GitHub
- Published
- Last changed
- Also known as
- RUSTSEC-2023-0072
Description
This function returned a reference into an OpenSSL datastructure, but there was no way to ensure OpenSSL would not mutate the datastructure behind one's back.
Use of this function should be replaced with X509StoreRef::all_certificates.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openssl (crates.io) | from 0.10.29 before 0.10.60, from 0.0.0-0 before 0.10.60 | GitHub Advisory Database, RustSec Advisory Database |
What each source says
GitHub Advisory Database
This function returned a reference into an OpenSSL datastructure, but there was no way to ensure OpenSSL would not mutate the datastructure behind one's back.
Use of this function should be replaced with X509StoreRef::all_certificates.
RustSec Advisory Database
This function returned a shared reference into an OpenSSL datastructure but did not account for interior mutability. OpenSSL may modify the data behind this reference, meaning accesses can race and the reference is unsound.
Use of this function should be replaced with X509StoreRef::all_certificates.
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-xphf-cx8h-7q9g changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0072 changed 2024-02-10 | CC0-1.0 |