Out-of-Bounds Affecting openjpeg package, versions <2.2.0-r1


Severity

Recommended
0.0
medium
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.41% (74th 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 IDSNYK-ALPINE315-OPENJPEG-1927487
  • published21 Aug 2017
  • disclosed21 Aug 2017

Introduced: 21 Aug 2017

CVE-2017-12982  (opens in a new tab)
CWE-119  (opens in a new tab)

How to fix?

Upgrade Alpine:3.15 openjpeg to version 2.2.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openjpeg package and not the openjpeg package as distributed by Alpine. See How to fix? for Alpine:3.15 relevant fixed versions and status.

The bmp_read_info_header function in bin/jp2/convertbmp.c in OpenJPEG 2.2.0 does not reject headers with a zero biBitCount, which allows remote attackers to cause a denial of service (memory allocation failure) in the opj_image_create function in lib/openjp2/image.c, related to the opj_aligned_alloc_n function in opj_malloc.c.

CVSS Scores

version 3.1