CVE-2020-15389
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-15389 affects OpenJPEG through version 2.3.1. The vulnerability is a use-after-free issue located in jp2/opj_decompress.c that can be triggered when there is a mix of valid and invalid files in a directory operated on by the decompressor. The issue was discovered in June 2020 (Debian LTS).

Technical details

The vulnerability occurs in the jp2/opj_decompress.c file when opj_image_destroy is called twice on the same image. The use-after-free specifically manifests as a read-after-free when opj_image_destroy attempts to read from the image after it has been freed. The issue emerges when there are multiple files in a directory, where at least one file has a valid header and another has an invalid header (Pastebin).

Impact

The vulnerability could result in denial of service or potentially lead to code execution in cases where malloc's freelist can be manipulated in a controlled manner. The CVSS 3.1 base score is 6.5 (Medium), with Network attack vector, High complexity, No privileges required, and No user interaction needed (Ubuntu CVE).

Exploitability

To exploit this vulnerability, an attacker must induce the target to run the decompressor on a crafted directory containing at least one valid .jp2 file and at least one invalid file. The exploit can be triggered using the command: ./opj_decompress -ImgDir Inputs/ -OutFor PGM (Pastebin).

Mitigation and workarounds

Multiple distributions have released patches to address this vulnerability. Debian fixed the issue in version 2.1.2-1.1+deb9u5 for Stretch and 2.3.0-2+deb10u2 for Buster. Ubuntu has fixed the vulnerability across multiple versions including 2.3.1-1ubuntu4.20.04.1 for Ubuntu 20.04 LTS (Debian LTS, Ubuntu CVE).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-78662HIGH7.5
  • Terraform Community logoTerraform Community
  • argo-workflow-controller-fips-4.0
NoYesSep 02, 2026
CVE-2026-56855HIGH7.5
  • Terraform Community logoTerraform Community
  • prometheus-mongodb-exporter-0.37
NoYesSep 02, 2026
CVE-2026-84642HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-84641HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026
CVE-2026-84640HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:thunderbird
NoYesSep 01, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management