# JLSEC-2026-534: jp2/opjdecompress.c in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a…

- Severity: Medium 6.5 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-26T19:31:24.313Z
- Modified: 2026-07-25T18:24:35.919Z
- Related: CVE-2020-15389

## Description

`jp2/opj_decompress.c` in OpenJPEG through 2.3.1 has a use-after-free that can be triggered if there is a mix of valid and invalid files in a directory operated on by the decompressor. Triggering a double-free may also be possible. This is related to calling `opj_image_destroy` twice.

(As written by Julia Security Advisories.)

## Affected

- OpenJpeg_jll (Julia): before 2.4.0+0

## Every score

- Julia Security Advisories: CVSS:2.0 `AV:N/AC:M/Au:N/C:P/I:N/A:P`
- Julia Security Advisories: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://github.com/uclouvain/openjpeg/issues/1261> (web)
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00008.html> (web)
- <https://pastebin.com/4sDKQ7U8> (web)
- <https://security.gentoo.org/glsa/202101-29> (web)
- <https://www.debian.org/security/2021/dsa-4882> (web)
- <https://www.oracle.com//security-alerts/cpujul2021.html> (web)
- <https://www.oracle.com/security-alerts/cpuoct2020.html> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-534](https://osv.dev/vulnerability/JLSEC-2026-534), CC-BY-4.0, modified 2026-07-25

---

Page: https://cve.day/JLSEC-2026-534 · Whole record: https://cve.day/JLSEC-2026-534.json · Rebuilt by cve.day 2026-11-25T22:56:26.151Z
