CVE-2023-29407 Excessive CPU consumption when decoding 0-height images in golang.org/x/image/tiff

Medium 6.5 Published Updated

A maliciously crafted TIFF image with zero height and large width causes excessive CPU consumption, leading to denial of service in applications using the Go image library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-29407?

CVE-2023-29407 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 2 Aug 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A maliciously-crafted image can cause excessive CPU consumption in decoding. A tiled image with a height of 0 and a very large width can cause excessive CPU consumption, despite the image size (width * height) appearing to be zero.

Weakness: CWE-834

Which versions are affected by CVE-2023-29407?

3 open source packages ship an affected version, including golang.org/x/image. It affects 2 products.

PackageAffectedFixed in
golang.org/x/image GoAll versions0.10.0
golang.org/x/image GoAll versions0.10.0
golang.org/x/image GoAll versions0.10.0

Products include Fedoraproject Fedora, Golang Image.

How do I fix CVE-2023-29407?

Upgrade golang.org/x/image to 0.10.0 or later.

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-2023-29407 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2023-29407, GHSA-j3p8-6mrq-6g7h, GO-2023-1990, UBUNTU-CVE-2023-29407.

Is CVE-2023-29407 in your software?

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

Check your SBOMs for free