# GHSA-3gxf-9r58-2ghg: `openssl` `X509NameBuilder::build` returned object is not thread safe

- Severity: Medium (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:14:38.793Z
- Also known as: RUSTSEC-2023-0022

## Description

OpenSSL has a `modified` bit that it can set on on `X509_NAME` objects. If this bit is set then the object is not thread-safe even when it appears the code is not modifying the value.

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://rustsec.org/advisories/RUSTSEC-2023-0022.html> (advisory, web)
- <https://crates.io/crates/openssl> (package)

## Sources

- GitHub Advisory Database: [GHSA-3gxf-9r58-2ghg](https://github.com/advisories/GHSA-3gxf-9r58-2ghg), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2023-0022](https://rustsec.org/advisories/RUSTSEC-2023-0022.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-3gxf-9r58-2ghg · Whole record: https://cve.day/GHSA-3gxf-9r58-2ghg.json · Rebuilt by cve.day 2026-11-25T22:56:43.143Z
