Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
Description
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into 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. Note that this bug is only triggered when _writing_ the metadata, which is a less frequently used Exiv2 operation than _reading_ the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as insert. The bug is fixed in version v0.27.4.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
20- osv-coords18 versionspkg:rpm/almalinux/exiv2pkg:rpm/almalinux/exiv2-develpkg:rpm/almalinux/exiv2-docpkg:rpm/almalinux/exiv2-libspkg:rpm/opensuse/exiv2-0_26&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/exiv2&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/exiv2&distro=openSUSE%20Tumbleweedpkg:rpm/suse/exiv2-0_26&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4pkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP4pkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/exiv2&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/exiv2&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/exiv2&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 0.27.4-5.el8+ 17 more
- (no CPE)range: < 0.27.4-5.el8
- (no CPE)range: < 0.27.4-5.el8
- (no CPE)range: < 0.27.4-5.el8
- (no CPE)range: < 0.27.4-5.el8
- (no CPE)range: < 0.26-150400.9.16.1
- (no CPE)range: < 0.27.5-150400.15.4.1
- (no CPE)range: < 0.27.5-3.1
- (no CPE)range: < 0.26-150400.9.16.1
- (no CPE)range: < 0.27.5-150400.15.4.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
- (no CPE)range: < 0.23-12.18.1
Patches
Vulnerability mechanics
References
8- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/mitrevendor-advisory
- security.gentoo.org/glsa/202312-06mitrevendor-advisory
- www.debian.org/security/2021/dsa-4958mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2021/08/msg00028.htmlmitremailing-list
- github.com/Exiv2/exiv2/issues/1529mitre
- github.com/Exiv2/exiv2/pull/1534mitre
- github.com/Exiv2/exiv2/security/advisories/GHSA-v74w-h496-cgqmmitre
News mentions
0No linked articles in our index yet.