CVE-2023-44398 Out-of-bounds write in exiv2

High 8.8 Published Updated

An out-of-bounds write in Exiv2 allows attackers to execute arbitrary code by tricking users into processing a crafted image file.

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-44398?

CVE-2023-44398 is a high-severity memory corruption vulnerability in Exiv2 Exiv2, published on 6 Nov 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

Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds write was found in Exiv2 version v0.28.0. The vulnerable function, `BmffImage::brotliUncompress`, is new in v0.28.0, so earlier versions of Exiv2 are _not_ affected. The out-of-bounds write is triggered when Exiv2 is used to read the metadata of a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. This bug is fixed in version v0.28.1. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-787

Which versions are affected by CVE-2023-44398?

1 open source package ship an affected version, including exiv2. It affects 1 product.

PackageAffectedFixed in
exiv2 PyPIAll versionsNone
Linux distribution packages (1)
exiv2 openSUSE:TumbleweedAll versions0.28.1-1.1

Products include Exiv2 Exiv2.

How do I fix CVE-2023-44398?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-44398 being exploited?

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

All Exiv2 Exiv2 vulnerabilities

Sources

Also known as AZL-31939, AZL-36940, CLEANSTART-2024-EU98453, GHSA-hrw9-ggg3-3r4r, PYSEC-2023-233, openSUSE-SU-2024:13403-1.

Is CVE-2023-44398 in your software?

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

Check your SBOMs for free