CVE-2022-41727 Denial of service via crafted TIFF image in golang.org/x/image/tiff

Medium 5.5 Published Updated

An attacker can cause a denial of service by providing a malformed TIFF image that consumes excessive memory during decoding.

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-2022-41727?

CVE-2022-41727 is a medium-severity denial of service vulnerability in Fedoraproject Fedora, published on 28 Feb 2023. 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

An attacker can craft a malformed TIFF image which will consume a significant amount of memory when passed to DecodeConfig. This could lead to a denial of service.

Weakness: CWE-770

Which versions are affected by CVE-2022-41727?

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

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

Products include Fedoraproject Fedora, Golang Image, Golang Tiff.

How do I fix CVE-2022-41727?

Upgrade golang.org/x/image to 0.5.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-2022-41727 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-41727, GHSA-qgc7-mgm3-q253, GO-2023-1572, UBUNTU-CVE-2022-41727.

Is CVE-2022-41727 in your software?

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

Check your SBOMs for free