CVE-2024-24826: Out-of-bounds read in QuickTimeVideo::NikonTagsDecoder in Exiv2
Impact An out-of-bounds read was found in Exiv2 version v0.28.1. The vulnerable function, QuickTimeVideo::NikonTagsDecoder, 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 out-of-bounds read 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. An out-of-bounds read was found in Exiv2 version v0.28.1. The vulnerable function, QuickTimeVideo::NikonTagsDecoder, was new in v0.28.0, so Exiv2 versions before v0.28 are not affected. The out-of-bounds read is triggered when Exiv2 is used to read the metadata of a crafted video file. In most cases this out of bounds read will result in a crash. 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-24826?
CVE-2024-24826 has a high severity score due to the potential for out-of-bounds read vulnerabilities.
How do I fix CVE-2024-24826?
To fix CVE-2024-24826, upgrade to Exiv2 version 0.28.2 or later.
Which versions of Exiv2 are affected by CVE-2024-24826?
CVE-2024-24826 affects Exiv2 versions 0.28.0 and 0.28.1.
What is the nature of the vulnerability in CVE-2024-24826?
CVE-2024-24826 is characterized by an out-of-bounds read in the QuickTimeVideo::NikonTagsDecoder function.
Can versions of Exiv2 prior to 0.28 be impacted by CVE-2024-24826?
No, versions of Exiv2 prior to 0.28 are not affected by CVE-2024-24826.