# GHSA-6hcf-g6gr-hhcr: `openssl` `X509Extension::new` and `X509Extension::new_nid` null pointer dereference

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-03-24T12:00:00.000Z
- Modified: 2023-11-08T04:16:17.438Z
- Also known as: RUSTSEC-2023-0024
- Weaknesses: CWE-476

## Description

These functions would crash when the context argument was None with certain extension types.

Thanks to David Benjamin (Google) for reporting this issue.

(As written by GitHub Advisory Database.)

## Affected

- openssl (crates.io): from 0.9.7 before 0.10.48; from 0.0.0-0 before 0.10.48

## References

- <https://github.com/sfackler/rust-openssl/pull/1854> (web)
- <https://github.com/sfackler/rust-openssl> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0024.html> (advisory, web)
- <https://crates.io/crates/openssl> (package)

## Sources

- GitHub Advisory Database: [GHSA-6hcf-g6gr-hhcr](https://github.com/advisories/GHSA-6hcf-g6gr-hhcr), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2023-0024](https://rustsec.org/advisories/RUSTSEC-2023-0024.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-6hcf-g6gr-hhcr · Whole record: https://cve.day/GHSA-6hcf-g6gr-hhcr.json · Rebuilt by cve.day 2026-11-25T22:56:43.143Z
