CVE-2021-22204
published medium CVSS 3.1 · 6.8perl-Image-ExifTool: improper neutralization of user data in the DjVu file format allows arbitrary code execution when parsing a malicious image
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ExifTool | — | ExifTool>=7.44, <12.24 | Affected | Not stated | GitLab |
| Alpine Linux | edge | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Debian | buster | libimage-exiftool-perl | Advisory build | 11.16-1+deb10u1 | DSA-4910-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | exiftoolnoarch | Advisory build | 12.25-bp152.4.3.1 | OPENSUSE-SU-2021:0707-1 |
| Ubuntu | bionic | libimage-exiftool-perl | Advisory build | 10.80-1ubuntu0.1 | USN-4987-1 |
| Alpine Linux | v3.13 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.14 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.15 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.17 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.18 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.19 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.20 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.21 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.22 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.23 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Alpine Linux | v3.24 | perl-image-exiftool | Fixed | 12.24-r0 | Package fix record |
| Debian | stretch | libimage-exiftool-perl | Advisory build | 10.40-1+deb9u1 | DLA-2663-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | perl-File-RandomAccessnoarch | Advisory build | 12.25-bp152.4.3.1 | OPENSUSE-SU-2021:0707-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | perl-Image-ExifToolnoarch | Advisory build | 12.25-bp152.4.3.1 | OPENSUSE-SU-2021:0707-1 |
| Ubuntu | focal | libimage-exiftool-perl | Advisory build | 11.88-1ubuntu0.1 | USN-4987-1 |
| Ubuntu | xenial | libimage-exiftool-perl | Advisory build | 10.10-1ubuntu0.1~esm1 | USN-4987-2 |
Description
Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing the malicious image
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ExifTool | ExifTool | >=7.44, <12.24 (affected) | GitLab · cna |
Weaknesses
2- Improper neutralization of directives in dynamically evaluated code ('eval injection') in ExifTool
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
15- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html
- [oss-security] 20210509 [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image http://www.openwall.com/lists/oss-security/2021/05/09/1
- [oss-security] 20210510 Re: [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image http://www.openwall.com/lists/oss-security/2021/05/10/5
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json
- https://hackerone.com/reports/1154542
- [debian-lts-announce] 20210516 [SECURITY] [DLA 2663-1] libimage-exiftool-perl security update https://lists.debian.org/debian-lts-announce/2021/05/msg00018.html
- FEDORA-2021-e3d8833d36 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDKDLJLBTBBR66OOPXSXCG2PQRM5KCZL/
- FEDORA-2021-88d24aa32b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F6UOBPU3LSHAPRRJNISNVXZ5DSUIALLV/
- FEDORA-2021-de850ed71e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U4RF6PJCJ6NQOVJJJF6HN6BORUQVIXY6/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22204
- DSA-4910 https://www.debian.org/security/2021/dsa-4910
Provider assertions
3GitLab · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ea68a9ef65b703e829a1472c3789557dc06e7a77cd32725050cc2cf62942cc91
- Ingested
- 23 Sep 2026, 07:52:37 UTC
- Source record
- Official CVE record