GitHub Advisoryadvisory · crates.io

GHSA-9qwg-crg9-m2vc `openssl` `SubjectAlternativeName` and `ExtendedKeyUsage::other` allow arbitrary file read

HIGH Published 2023-03-24 Modified 2023-03-24 Official page ↗
Ecosystem
crates.io
Packages
openssl
Severity
High
Reviewed
2023-03-24

Affected packages

• crates.io openssl: >= 0.9.7, < 0.10.48 → fixed in 0.10.48

Description

`SubjectAlternativeName` and `ExtendedKeyUsage` arguments were parsed using the OpenSSL function `X509V3_EXT_nconf`. This function parses all input using an OpenSSL mini-language which can perform arbitrary file reads. Thanks to David Benjamin (Google) for reporting this issue.

References