CVE-2021-22204: ExifTool Remote Code Execution Vulnerability MEDIUM 6.8 EXPLOITED WATCHLIST UPGRADE MITIGATE MITIGATE
CVE-2021-22204 is a medium-severity flaw (CVSS 6.8) affecting exiftool, debian linux, fedora, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority EPSS top 1%: very likely to be exploited Exploited in the wild (CISA KEV) Public exploit reference On your watchlist A fixed release or distro patch exists.
Risk facts CVSS score 6.8 (Medium) Attack vector Local Attack complexity Low Privileges needed None User interaction None EPSS exploit chance 100.0% (top 1%) CISA exploited list Yes, fix due 2021-12-01 Weakness CWE-94 Published 2021-04-23 Last modified 2026-06-17
Share: LinkedIn · X · Reddit
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline 2021-04-23 18:15 UTC Published CVE record published2021-11-17 Exploited Added to the CISA Known Exploited Vulnerabilities list2021-12-01 Deadline CISA due date for US federal agencies to patch2026-06-17 03:36 UTC Updated Record last modifiedexiftool project exiftool UPGRADE
Affected: >= 7.44 and < 12.24
Fixed in: 12.24
Safe to downgrade to: a release before 7.44
1. Check installed version
Copy apt-cache policy exiftool || rpm -q exiftool || exiftool --version
2. UPGRADE to 12.24 (Debian / Ubuntu)
Copy sudo apt update && sudo apt install --only-upgrade exiftool
2. UPGRADE (RHEL / Amazon Linux / Fedora)
Copy sudo dnf upgrade exiftool
Note
Copy Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 7.44 (Debian / Ubuntu)
Copy apt-cache madison exiftool
sudo apt install exiftool=<VERSION_BEFORE_7.44>
sudo apt-mark hold exiftool
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
Copy dnf --showduplicates list exiftool
sudo dnf downgrade exiftool-<VERSION_BEFORE_7.44>
sudo dnf versionlock add exiftool
Downgrade risk
Copy Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Copy Restart the service, and keep the package held until a fixed release ships.
debian debian linux MITIGATE
Affected: 9.0 · 10.0
Fixed in: no fixed release known
Safe to downgrade to: a release before 9.0
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
fedoraproject fedora MITIGATE
Affected: 32 · 33 · 34
Fixed in: no fixed release known
Safe to downgrade to: a release before 32
Check your OS release
Copy cat /etc/os-release; uname -r
Debian / Ubuntu
Copy sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
Copy sudo dnf upgrade --refresh
Windows
Copy Install the latest cumulative update from Windows Update
If no patch exists yet
Copy OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Exact fixes by distribution Show all
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · bitcoin-core-selinux ·
FIXED · 0.3-2.fc46 · FEDORA-2026-51fc806272 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-51fc806272
Fedora ELN · guestfs-tools ·
FIXED · 1.57.5-1.eln159 · FEDORA-2026-9577c5ec16 ·
source Copy sudo dnf upgrade --advisory=FEDORA-2026-9577c5ec16
Ubuntu 22.04 · libimage-exiftool-perl · NOT AFFECTED
Ubuntu 20.04 · libimage-exiftool-perl · FIXED · 11.88-1ubuntu0.1
Copy sudo apt update && sudo apt install --only-upgrade libimage-exiftool-perl
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libimage-exiftool-perl)" ge "11.88-1ubuntu0.1" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · libimage-exiftool-perl · FIXED · 12.16+dfsg-2
Copy sudo apt update && sudo apt install --only-upgrade libimage-exiftool-perl
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libimage-exiftool-perl)" ge "12.16+dfsg-2" && echo PATCHED || echo STILL-VULNERABLE
Debian 13 · libimage-exiftool-perl · FIXED · 12.16+dfsg-2
Copy sudo apt update && sudo apt install --only-upgrade libimage-exiftool-perl
dpkg --compare-versions "$(dpkg-query -W -f='${Version}' libimage-exiftool-perl)" ge "12.16+dfsg-2" && echo PATCHED || echo STILL-VULNERABLE
Alpine 3.20 · perl-image-exiftool · FIXED · perl-image-exiftool-12.24-r0
Copy apk add --upgrade perl-image-exiftool
apk info -v perl-image-exiftool
Alpine 3.21 · perl-image-exiftool · FIXED · perl-image-exiftool-12.24-r0
Copy apk add --upgrade perl-image-exiftool
apk info -v perl-image-exiftool
Alpine 3.22 · perl-image-exiftool · FIXED · perl-image-exiftool-12.24-r0
Copy apk add --upgrade perl-image-exiftool
apk info -v perl-image-exiftool
Alpine 3.23 · perl-image-exiftool · FIXED · perl-image-exiftool-12.24-r0
Copy apk add --upgrade perl-image-exiftool
apk info -v perl-image-exiftool
Public exploits and detection Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
Quick answers How do I fix CVE-2021-22204? exiftool: upgrade to 12.24; debian linux: mitigate or apply the listed mitigation; fedora: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2021-22204 being exploited? Yes. CVE-2021-22204 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2021-22204 affect? CVE-2021-22204 affects exiftool, debian linux, fedora. Severity is medium (CVSS 6.8). 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
How urgent is CVE-2021-22204? Priority 84/100. EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist
Software pages Debian vulnerabilities
Related CVEs CVE-2026-3102 MEDIUM 6.3 UPGRADE A vulnerability was determined in exiftool up to 13.49 on macOSCVE-2022-23935 HIGH 7.8 UPGRADE lib/Image/ExifTool.pm in ExifTool before 12.38 mishandles a $file =~ /\|$/ check, leading to command injectionReferences ← Back to latest CVEs