A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.
https://www.debian.org/security/2021/dsa-4958
https://lists.debian.org/debian-lts-announce/2021/08/msg00028.html