Actively exploited · Published Apr 23, 2021 · Assigned by GitLab
CVE-2021-22204
Medium 6.8 Exploited
In plain English
A medium-severity code injection in ExifTool from ExifTool. Attackers are actively exploiting it in the wild (listed by CISA on November 17, 2021). The chance it is exploited in the next 30 days is estimated at 100.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
CISA guidance
Apply updates per vendor instructions.
Federal agencies must remediate by Dec 1, 2021.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | perl-image-exiftool | 12.24-r0 | ALPINE-CVE-2021-22204 |
| Alpine:v3.21 | perl-image-exiftool | 12.24-r0 | ALPINE-CVE-2021-22204 |
| Alpine:v3.22 | perl-image-exiftool | 12.24-r0 | ALPINE-CVE-2021-22204 |
| Alpine:v3.23 | perl-image-exiftool | 12.24-r0 | ALPINE-CVE-2021-22204 |
| Alpine:v3.24 | perl-image-exiftool | 12.24-r0 | ALPINE-CVE-2021-22204 |
| Debian:12 | libimage-exiftool-perl | 12.16+dfsg-2 | DEBIAN-CVE-2021-22204 |
| Debian:13 | libimage-exiftool-perl | 12.16+dfsg-2 | DEBIAN-CVE-2021-22204 |
| Debian:14 | libimage-exiftool-perl | 12.16+dfsg-2 | DEBIAN-CVE-2021-22204 |
Affected products (as reported)
Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
References
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 x_refsource_MISC
- https://hackerone.com/reports/1154542 x_refsource_MISC
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json x_refsource_CONFIRM
- DSA-4910 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2021-de850ed71e vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-e3d8833d36 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-88d24aa32b vendor-advisory, x_refsource_FEDORA
- [oss-security] 20210509 [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image mailing-list, x_refsource_MLIST
- [oss-security] 20210510 Re: [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html x_refsource_MISC
- [debian-lts-announce] 20210516 [SECURITY] [DLA 2663-1] libimage-exiftool-perl security update mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html x_refsource_MISC
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html x_refsource_MISC
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22204 government-resource