JLSEC-2026-1751: Issue summary: When an application passes a stack to PEM_X509_INFO_read_bio_ex() to add entries...

Published Dec 1, 2026
·
Updated

Issue summary: When an application passes a stack to PEMX509INFOreadbioex() to add entries to, and reading fails, OpenSSL frees every entry in the stack, both the old ones and any new ones, but leaves them in the stack.

Impact summary: An application that passes an existing stack to PEMX509INFOreadbioex() and keeps using it after a failed read may use memory that was already freed. This can cause a crash or, in principle, memory corruption. Malformed PEM data can make the read fail, but only applications that pass an existing stack are affected, and OpenSSL itself does not do this.

CWE: CWE-416: Use After Free

Description: PEMX509INFOreadbioex() reads certificates, CRLs and private keys from PEM data and adds them to a stack of X509INFO structures. If the application passes a stack that is not NULL, the function adds the new entries to it and must leave the entries that are already there unchanged.

If reading fails, the function frees every entry in the stack. This includes the entries that were there before the call, and the entries added by the call. It does not remove these entries from the stack, so the stack keeps pointers to freed memory. The failure can happen at any point, even before any entry was added. A PEM item with invalid content is enough. This also happens if the stack was empty: entries added before the failure are freed but stay in the stack.

An application that then reads or frees the stack will use memory that was already freed. This can crash the application or, in principle, corrupt memory.

Only applications that pass a stack that is not NULL are affected. OpenSSL itself never does this. Its own callers, including the code that TLS uses to load CA certificates, always pass NULL. When the stack is NULL, the function frees only the entries that it created itself, which is safe. We expect that very few applications pass an existing stack. An attacker can make the read fail with malformed PEM data, but cannot make an application pass an existing stack.

The same problem affects PEMX509INFOreadbio(), PEMX509INFOread() and PEMX509INFOreadex(), which use the same code. OpenSSL 1.1.1 and 1.0.2 have only the first two of these functions.

FIPS impact: no The affected code is outside the FIPS module boundary.

Affected Software

3 affected componentsFixes available
julia/appbundler>=1.0.0<1.0.1
1.0.1
julia/openssl_jll<3.5.10+0
3.5.10+0
julia/openresty_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade julia/AppBundler to a version that resolves this vulnerability.

    Fixed in 1.0.1
  2. Upgrade

    Upgrade julia/OpenSSL_jll to a version that resolves this vulnerability.

    Fixed in 3.5.10+0

Event History

Dec 1, 2026
Advisory Published
via OSV·11:02 PM
Data Sourced
via OSV·11:02 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which applications are exposed to this issue?

Only applications that call PEM_X509_INFO_read_bio_ex() with an existing, non-NULL stack are affected. OpenSSL itself does not use the function this way.

2

What conditions are needed to trigger the flaw?

The PEM read must fail after the application supplies an existing stack, and the application must continue using that stack afterward. Malformed PEM data can cause the read failure.

3

What can happen if a vulnerable application continues after a failed read?

The stack retains pointers to entries that OpenSSL has freed. Subsequent use can cause a crash or, in principle, memory corruption.

4

What should developers do if they cannot immediately update the affected component?

Do not continue using an existing stack passed to PEM_X509_INFO_read_bio_ex() after the function reports a read failure. Review error-handling paths for calls that pass a non-NULL stack.

5

How can developers identify potentially affected code?

Audit calls to PEM_X509_INFO_read_bio_ex() for a non-NULL stack argument. Code is potentially affected when it reuses that stack after a failed read operation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203