CVE-2024-25112 Denial of service due to unbounded recursion in QuickTimeVideo::multipleEntriesDecoder in Exiv2
An attacker can cause a denial of service by providing a crafted video file that triggers unbounded recursion in the Exiv2 library.
- 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-2024-25112?
CVE-2024-25112 is a medium-severity denial of service vulnerability in Exiv2 Exiv2, published on 12 Feb 2024. 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
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A denial-of-service was found in Exiv2 version v0.28.1: an unbounded recursion can cause Exiv2 to crash by exhausting the stack. The vulnerable function, `QuickTimeVideo::multipleEntriesDecoder`, was new in v0.28.0, so Exiv2 versions before v0.28 are _not_ affected. The denial-of-service is triggered when Exiv2 is used to read the metadata of a crafted video file. This bug is fixed in version v0.28.2. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Which versions are affected by CVE-2024-25112?
3 open source packages ship an affected version, including exiv2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
exiv2 PyPI | From 0.16.0 | 0.16.1 |
exiv2 PyPI | From 0.16.0 | 0.16.1 |
exiv2 PyPI | From 0.16.0 | 0.16.1 |
Products include Exiv2 Exiv2.
How do I fix CVE-2024-25112?
Upgrade exiv2 to 0.16.1 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-2024-25112 being exploited?
There is no known exploitation of CVE-2024-25112 in the wild and no public exploit code.
Other vulnerabilities in Exiv2 Exiv2
Sources
Also known as AZL-42515, AZL-42558, CLEANSTART-2024-GA74818, DEBIAN-CVE-2024-25112, GHSA-crmj-qh74-2r36, PYSEC-2024-107.