CVE-2012-2840: Libexif Project Libexif

High severity, CVSS 7.5. EPSS: 5% chance of exploitation in the next 30 days.

Off-by-one error in the exif_convert_utf16_to_utf8 function in exif-entry.c in the EXIF Tag Parsing Library (aka libexif) before 0.6.21 allows remote attackers to cause a denial of service or possibly execute arbitrary code via crafted EXIF tags in an image.

Affected products

  • Libexif Project Libexif: up to and including 0.6.20; version 0.6.14 only; version 0.6.15 only; version 0.6.16 only; version 0.6.18 only; version 0.6.19 only

Published 2012-07-13. Last modified 2026-06-16.