JLSEC-2026-1671: Use After Free

Published Dec 1, 2026
·
Updated

Use-after-free (UAF) was possible in the lzma.LZMADecompressor, bz2.BZ2Decompressor, and gzip.GzipFile when a memory allocation fails with a MemoryError and the decompression instance is re-used. This scenario can be triggered if the process is under memory pressure. The fix cleans up the dangling pointer in this specific error condition.

The vulnerability is only present if the program re-uses decompressor instances across multiple decompression calls even after a MemoryError is raised during decompression. Using the helper functions to one-shot decompress data such as lzma.decompress(), bz2.decompress(), gzip.decompress(), and zlib.decompress() are not affected as a new decompressor instance is used per call. If the decompressor instance is not re-used after an error condition, this usage is similarly not vulnerable.

Affected Software

1 affected componentFixes available
julia/python_jll<3.12.14+0
3.12.14+0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 3.12.14+0
  2. Compensating control

    Do not reuse lzma.LZMADecompressor, bz2.BZ2Decompressor, or gzip.GzipFile instances after a MemoryError during decompression.

Event History

Dec 1, 2026
Advisory Published
via OSV·03:50 PM
Data Sourced
via OSV·03:50 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Which applications are actually exposed to this issue?

Only applications that reuse an lzma.LZMADecompressor, bz2.BZ2Decompressor, or gzip.GzipFile instance after decompression raises MemoryError are vulnerable. The condition requires the process to be under memory pressure when the allocation failure occurs.

2

Are one-shot decompression APIs affected?

No. Calls to lzma.decompress(), bz2.decompress(), gzip.decompress(), and zlib.decompress() are not affected because they create a new decompressor instance for each call.

3

What can be done if the fix cannot be applied immediately?

Do not reuse decompressor instances after any decompression error, particularly MemoryError. Replacing reusable instances with the relevant one-shot helper functions also avoids the affected reuse pattern.

4

How can we determine whether our code is affected?

Review code for reused instances of lzma.LZMADecompressor, bz2.BZ2Decompressor, or gzip.GzipFile. Exposure exists only if the same instance can be used again after a MemoryError raised during decompression.

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