CVE-2012-2840
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.
What to do
Fixed builds are available from Alpine, Debian, Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Debian 14 | libexif | Fixed | 0.6.20-3 | DEBIAN-CVE-2012-2840 |
| Debian 13 | libexif | Fixed | 0.6.20-3 | DEBIAN-CVE-2012-2840 |
| Debian 12 | libexif | Fixed | 0.6.20-3 | DEBIAN-CVE-2012-2840 |
| Red Hat Enterprise Linux 6 | libexif | Fixed | 0:0.6.21-5.el6_3 | RHSA-2012:1255 |
| Red Hat Enterprise Linux 6 | libexif-devel | Fixed | 0:0.6.21-5.el6_3 | RHSA-2012:1255 |
| Red Hat Enterprise Linux 5 | libexif | Fixed | 0:0.6.21-1.el5_8 | RHSA-2012:1255 |
| Red Hat Enterprise Linux 5 | libexif-devel | Fixed | 0:0.6.21-1.el5_8 | RHSA-2012:1255 |
| Alpine Linux 3.24 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.23 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.22 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.21 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.20 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.19 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.18 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.17 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.16 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.15 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.14 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.13 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.12 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.11 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.10 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.9 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
| Alpine Linux 3.8 | libexif | Fixed | 0.6.21-r0 | ALPINE-CVE-2012-2840 |
What the vendor says
As published in the CVE record by Chrome, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2012/dsa-2559 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00015.html (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2012-1255.html (vendor-advisory)
- http://www.ubuntu.com/usn/USN-1513-1 (vendor-advisory)
References
- http://www.securityfocus.com/bid/54437
- http://www.debian.org/security/2012/dsa-2559
- http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00015.html
- http://sourceforge.net/mailarchive/message.php?msg_id=29534027
- http://secunia.com/advisories/49988
- http://rhn.redhat.com/errata/RHSA-2012-1255.html
- http://www.ubuntu.com/usn/USN-1513-1
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.