Off-by-one in libexif - CVE-2012-2840
Published: July 26, 2020
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to an off-by-one error in the exif_convert_utf16_to_utf8 function in exif-entry.c in the EXIF Tag Parsing Library. A remote attacker can trigger an off-by-one error via crafted EXIF tags in an image and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Amazon Linux AMI
Gentoo Linux
SUSE Linux
Slackware Linux
libexif (Alpine package)
How to mitigate CVE-2012-2840
libexif (Alpine package) - update to 0.6.21-r0
External References
- http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00015.html
- http://rhn.redhat.com/errata/RHSA-2012-1255.html
- http://secunia.com/advisories/49988
- http://sourceforge.net/mailarchive/message.php?msg_id=29534027
- http://www.debian.org/security/2012/dsa-2559
- http://www.securityfocus.com/bid/54437
- http://www.ubuntu.com/usn/USN-1513-1