Use After Free Affecting uclouvain/openjpeg package, versions [,2.4.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.68% (91st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-UCLOUVAINOPENJPEG-2318860
  • published14 Dec 2021
  • disclosed29 Jun 2020
  • creditUnknown

Introduced: 29 Jun 2020

CVE-2020-15389  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade uclouvain/openjpeg to version 2.4.0 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free 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.

CVSS Scores

version 3.1