CVE-2024-25112: Denial of service due to unbounded recursion in QuickTimeVideo::multipleEntriesDecoder in Exiv2
Impact 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 (see https://github.com/Exiv2/exiv2/pull/2337), so Exiv2 versions before v0.28 are not affected. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The denial-of-service is triggered when Exiv2 is used to read the metadata of a crafted video file.
Patches The bug is fixed in version v0.28.2.
For more information Please see our security policy for information about Exiv2 security.
Credit This bug was found by OSS-Fuzz.
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/exiv2to a version that resolves this vulnerability.Fixed in 0.16.1 - Upgrade
Upgrade
Exiv2to a version that resolves this vulnerability.Fixed in v0.28.2
Event History
Frequently Asked Questions
What is the severity of CVE-2024-25112?
CVE-2024-25112 has a severity level categorized as high due to the potential for denial-of-service attacks.
How do I fix CVE-2024-25112?
To fix CVE-2024-25112, upgrade Exiv2 to version 0.28.2 or later.
Which versions of Exiv2 are affected by CVE-2024-25112?
CVE-2024-25112 affects Exiv2 versions 0.28.0 and 0.28.1.
What type of vulnerability is CVE-2024-25112?
CVE-2024-25112 is a denial-of-service vulnerability caused by unbounded recursion.
What is the main function involved in CVE-2024-25112?
The main function involved in CVE-2024-25112 is QuickTimeVideo::multipleEntriesDecoder.