CVE-2017-12982 Denial of service in n/a

Medium 5.5 Published Updated

Remote attackers can cause a denial of service via memory allocation failure in OpenJPEG by providing a BMP file with a zero biBitCount header.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2017-12982?

CVE-2017-12982 is a medium-severity denial of service vulnerability in Uclouvain Openjpeg, published on 21 Aug 2017. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-119

Which versions are affected by CVE-2017-12982?

It affects 1 product.

Products include Uclouvain Openjpeg.

How do I fix CVE-2017-12982?

Apply the vendor's patch.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2017-12982 being exploited?

There is no known exploitation of CVE-2017-12982 in the wild and no public exploit code.

All Uclouvain Openjpeg vulnerabilities

Sources

Also known as ALPINE-CVE-2017-12982, DEBIAN-CVE-2017-12982, GHSA-4v94-xg8j-pp22, UBUNTU-CVE-2017-12982.

Is CVE-2017-12982 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free