You can now sign in with a passkey, no password needed, or protect your account with a second factor. Learn more
OpenSSL: Double free after calling PEM_read_bio_ex
Download as CSAF file (VEX, JSON)Machine-readable version of this assessment in the OASIS CSAF 2.0 standard, for example for your vulnerability scanner. You may pass the file on.
The function PEM_read_bio_ex() reads a PEM file from a BIO and parses and decodes the "name" (e.g. "CERTIFICATE"), any header data and the payload data. If the function succeeds then the "name_out", "header" and "data" arguments are populated with pointers to buffers containing the relevant decoded data. The caller is responsible for freeing those buffers. It is possible to construct a PEM file that results in 0 bytes of payload data. In this case PEM_read_bio_ex() will return a failure code but will populate the header argument with a pointer to a buffer that has already been freed. If the caller also frees this buffer then a double free will occur. This will most likely lead to a crash. This could be exploited by an attacker who has the ability to supply malicious PEM files for parsing to achieve a denial of service attack. The functions PEM_read_bio() and PEM_read() are simple wrappers around PEM_read_bio_ex() and therefore these functions are also directly affected. These functions are also called indirectly by a number of other OpenSSL functions including PEM_X509_INFO_read_bio_ex() and SSL_CTX_use_serverinfo_file() which are also vulnerable. Some OpenSSL internal uses of these functions are not vulnerable because the caller does not free the header argument if PEM_read_bio_ex() returns a failure code. These locations include the PEM_read_bio_TYPE() functions as well as the decoders introduced in OpenSSL 3.0. The OpenSSL asn1parse command line application is also impacted by this issue.
The newest version of each supported line. Older versions are under “All versions”.
| Version | Status | Fixed from |
|---|---|---|
| EventReporter 26.11Current | Not affected | – |
| EventReporter 19.4aExtended maintenance | Not affected | – |
| MonitorWare Agent 26.11Current | Not affected | – |
| MonitorWare Agent 15.4aExtended maintenance | Not affected | – |
| rsyslog Windows Agent 26.11Current | Not affected | – |
| rsyslog Windows Agent 8.4aExtended maintenance | Not affected | – |
| WinSyslog 26.11 |
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 19.4a ship OpenSSL 3.2.1, 19.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 18.3 ship OpenSSL 1.1.1g, 18.3 and later ship OpenSSL 1.1.1q; both are affected. Line 18 is end of life; please update to a supported version (19.4a or 26.11).
| Not affected |
| – |
| WinSyslog 18.4aExtended maintenance | Not affected | – |
|---|
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 18.3, 1.1.1q from 18.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 17.2) and 1.0.2u (from 17.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 17.2, 1.0.2u from 17.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 15.4a ship OpenSSL 3.2.1, 15.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 14.3 ship OpenSSL 1.1.1g, 14.3 and later ship OpenSSL 1.1.1q; both are affected. Line 14 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 14.3, 1.1.1q from 14.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 13.2) and 1.0.2u (from 13.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 13.2, 1.0.2u from 13.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 8.4a ship OpenSSL 3.2.1, 8.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 7.3 ship OpenSSL 1.1.1g, 7.3 and later ship OpenSSL 1.1.1q; both are affected. Line 7 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 7.3, 1.1.1q from 7.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 6.2) and 1.0.2u (from 6.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 6.2, 1.0.2u from 6.2
The vulnerable code is not included.
26.07 and later ship OpenSSL 3.5.6 or 3.5.9; OpenSSL does not list either as affected.
The vulnerable code is not included.
Releases before 18.4a ship OpenSSL 3.2.1, 18.4a ships OpenSSL 3.5.9; OpenSSL does not list either as affected.
Releases before 17.3 ship OpenSSL 1.1.1g, 17.3 and later ship OpenSSL 1.1.1q; both are affected. Line 17 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 17.3, 1.1.1q from 17.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 16.2) and 1.0.2u (from 16.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 16.2, 1.0.2u from 16.2
Products and versions not listed here have not been checked.