Every CVE Search/ Get API key

CVE-2021-22204

Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up...

6.8 MediumIn KEVPublic exploitFix available

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

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
Low
Integrity
Low
Availability
Low

Exploit likelihood

100.0%Up 98.5 points since Apr 27, 2021
90%50%10%1%

What each source reports

CVE List Score used 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

Record
CVE-2021-22204
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weakness
CWE-94
Updated
2026-11-02
EUVDEUVD-2021-9350 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

Record
EUVD-2021-9350
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
GitHub AdvisoriesGHSA-9377-7hwr-p4w6 7.8

Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up...

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

Record
GHSA-9377-7hwr-p4w6
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-74, CWE-94
Updated
2026-11-02
CISA KEV No score

ExifTool Remote Code Execution Vulnerability

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

Record
CVE-2021-22204
Weakness
CWE-95
Updated
2026-11-02
NVD 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

Record
CVE-2021-22204
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-94
Updated
2026-11-02
OSVALPINE-CVE-2021-22204 7.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

Record
ALPINE-CVE-2021-22204
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
Show 7 moreShow less
OSV 7.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

Record
CVE-2021-22204
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2021-22204 7.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

Record
DEBIAN-CVE-2021-22204
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2021-22204 7.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

Record
UBUNTU-CVE-2021-22204
CVSS 3.1
7.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 3.1
6.8 MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Updated
2026-11-02
OSVMGASA-2021-0259 No score

Updated perl-Image-ExifTool package fixes a security vulnerability

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 (CVE-2021-22204).

Record
MGASA-2021-0259
Updated
2026-11-02
OSVopenSUSE-SU-2021:0707-1 No score

Security update for perl-Image-ExifTool

This update for perl-Image-ExifTool fixes the following issues:

Update to version 12.25 fixes (boo#1185547 CVE-2021-22204)

  • JPEG XL support is now official
  • Added read support for Medical Research Council (MRC) image files
  • Added ability to write a number of 3gp tags in video files
  • Added a new Sony PictureProfile value (thanks Jos Roost)
  • Added a new Sony LensType (thanks LibRaw)
  • Added a new Nikon LensID (thanks Niels Kristian Bech Jensen)
  • Added a new Canon LensType
  • Decode more GPS information from Blackvue dashcam videos
  • Decode a couple of new NikonSettings tags (thanks Warren Hatch)
  • Decode a few new RIFF tags
  • Improved Validate option to add minor warning if standard XMP is missing xpacket wrapper
  • Avoid decoding some large arrays in DNG images to improve performance unless the -m option is used
  • Patched bug that could give runtime warning when trying to write an empty XMP structure
  • Fixed decoding of ImageWidth/Height for JPEG XL images
  • Fixed problem were Microsoft Xtra tags couldn't be deleted

version 12.24:

  • Added a new PhaseOne RawFormat value (thanks LibRaw)
  • Decode a new Sony tag (thanks Jos Roost)
  • Decode a few new Panasonic and FujiFilm tags (thanks LibRaw and Greybeard)
  • Patched security vulnerability in DjVu reader
  • Updated acdsee.config in distribution (thanks StarGeek)
  • Recognize AutoCAD DXF files
  • More work on experimental JUMBF read support
  • More work on experimental JPEG XL read/write support

version 12.23:

  • Added support for Olympus ORI files
  • Added experimental read/write support for JPEG XL images
  • Added experimental read support for JUMBF metadata in JPEG and Jpeg2000 images
  • Added built-in support for parsing GPS track from Denver ACG-8050 videos with the -ee option
  • Added a some new Sony lenses (thanks Jos Roost and LibRaw)
  • Changed priority of Samsung trailer tags so the first DepthMapImage takes precedence when -a is not used
  • Improved identification of M4A audio files
  • Patched to avoid escaping ',' in 'Binary data' message when -struct is used
  • Removed Unknown flag from MXF VideoCodingSchemeID tag
  • Fixed -forcewrite=EXIF to apply to EXIF in binary header of EPS files
  • API Changes:
    • Added BlockExtract option

version 12.22:

  • Added a few new Sony LensTypes and a new SonyModelID (thanks Jos Roost and LibRaw)
  • Added Extra BaseName tag
  • Added a new CanonModelID (thanks LibRaw)
  • Decode timed GPS from unlisted programs in M2TS videos with the -ee3 option
  • Decode more Sony rtmd tags
  • Decode some tags for the Sony ILME-FX3 (thanks Jos Roost)
  • Allow negative values to be written to XMP-aux:LensID
  • Recognize HEVC video program in M2TS files
  • Enhanced -b option so --b suppresses tags with binary data
  • Improved flexibility when writing GPS coordinates:
    • Now pulls latitude and longitude from a combined GPSCoordinates string
    • Recognizes the full word 'South' and 'West' to write negative coordinates
  • Improved warning when trying to write an integer QuickTime date/time tag and Time::Local is not available
  • Convert GPSSpeed from mph to km/h in timed GPS from Garmin MP4 videos

version 12.21:

  • Added a few new iOS QuickTime tags
  • Decode a couple more Sony rtmd tags
  • Patch to avoid possible 'Use of uninitialized value' warning when attempting to write QuickTime date/time tags with an invalid value
  • Fixed problem writing Microsoft Xtra tags
  • Fixed Windows daylight savings time patch for file times that was broken in 12.19 (however directory times will not yet handle DST properly)

version 12.20:

  • Added ability to write some Microsoft Xtra tags in MOV/MP4 videos
  • Added two new Canon LensType values (thanks Norbert Wasser)
  • Added a new Nikon LensID
  • Fixed problem reading FITS comments that start before column 11

version 12.19:

  • Added -list_dir option
  • Added the 'ls-l' Shortcut tag
  • Extract Comment and History from FITS files
  • Enhanced FilePermissions to include device type (similar to …
Record
openSUSE-SU-2021:0707-1
Updated
2026-11-02
OSVUSN-4987-1 No score

libimage-exiftool-perl vulnerability

It was discovered that ExifTool did not properly sanitize user data for the DjVu file format. An attacker could use this vulnerability to cause a DoS or possibly execute arbitrary code.

Record
USN-4987-1
Updated
2026-11-02
OSVUSN-4987-2 No score

libimage-exiftool-perl vulnerability

USN-4987-1 fixed a vulnerability in ExifTool. This update provides the corresponding update for Ubuntu 16.04 ESM.

Original advisory details:

It was discovered that ExifTool did not properly sanitize user data for the DjVu file format. An attacker could use this vulnerability to cause a DoS or possibly execute arbitrary code.

Record
USN-4987-2
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
perl-image-exiftool
Alpine:v3.13
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.14
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.15
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.16
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.17
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.18
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.19
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.20
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.21
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.22
before 12.24-r0
12.24-r0
Show 15 moreShow less
Affected packages
PackageAffectedFixed
perl-image-exiftool
Alpine:v3.23
before 12.24-r0
12.24-r0
perl-image-exiftool
Alpine:v3.24
before 12.24-r0
12.24-r0
libimage-exiftool-perl
Debian:12
before 12.16+dfsg-2
12.16+dfsg-2
libimage-exiftool-perl
Debian:13
before 12.16+dfsg-2
12.16+dfsg-2
libimage-exiftool-perl
Debian:14
before 12.16+dfsg-2
12.16+dfsg-2
libimage-exiftool-perl
Debian:9
before 10.40-1+deb9u1, plus listed versions
10.40-1
10.40-1+deb9u1
libimage-exiftool-perl
Debian:10
before 11.16-1+deb10u1, plus listed versions
11.16-1
11.16-1+deb10u1
perl-Image-ExifTool
Mageia:7
before 11.300.0-1.1.mga7
11.300.0-1.1.mga7
perl-Image-ExifTool
Mageia:8
before 12.0.0-1.1.mga8
12.0.0-1.1.mga8
libimage-exiftool-perl
Ubuntu:Pro:16.04:LTS
before 10.10-1ubuntu0.1~esm1, plus listed versions
10.00-110.02-110.04-110.05-110.07-110.08-110.09-110.10-1
10.10-1ubuntu0.1~esm1
libimage-exiftool-perl
Ubuntu:18.04:LTS
before 10.80-1ubuntu0.1, plus listed versions
10.60-110.64-110.65-110.67-110.75-110.79-110.80-1
10.80-1ubuntu0.1
libimage-exiftool-perl
Ubuntu:20.04:LTS
before 11.88-1ubuntu0.1, plus listed versions
11.65-111.70-111.74-111.75-111.76-1
Show 6 moreShow less
11.77-111.78-111.79-111.80-111.87-111.88-1
11.88-1ubuntu0.1
perl-Image-ExifTool
SUSE:Package Hub 15 SP1
before 12.25-bp152.4.3.1
12.25-bp152.4.3.1
perl-Image-ExifTool
SUSE:Package Hub 15 SP2
before 12.25-bp152.4.3.1
12.25-bp152.4.3.1
perl-Image-ExifTool
openSUSE:Leap 15.2
before 12.25-bp152.4.3.1
12.25-bp152.4.3.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
MetasploitGitLab Unauthenticated Remote ExifTool Command Injection2021-04-14
PoC in GitHubconvisolabs/CVE-2021-22204-exiftool2021-05-11
PoC in GitHubse162xg/CVE-2021-222042021-05-12
PoC in GitHubbilkoh/POC-CVE-2021-222042021-05-21
MetasploitExifTool DjVu ANT Perl injection2021-05-24
PoC in GitHubAssassinUKG/CVE-2021-222042021-08-02
PoC in GitHubPenTestical/CVE-2021-222042021-08-02
PoC in GitHubph-arm/CVE-2021-22204-Gitlab2021-11-04
PoC in GitHubAsaad27/CVE-2021-22204-RSE2021-12-06
PoC in GitHubtrganda/CVE-2021-222042021-12-29
Show 10 moreShow less
Public exploits
SourceLinkDate
PoC in GitHub0xBruno/CVE-2021-222042022-01-30
PoC in GitHubmr-tuhin/CVE-2021-22204-exiftool2022-02-21
PoC in GitHubUNICORDev/exploit-CVE-2021-222042022-04-16
Exploit-DBExifTool 12.23 - Arbitrary Code Execution2022-05-11
PoC in GitHubAkash7350/CVE-2021-222042023-05-14
PoC in GitHubbattleofthebots/dejavu2023-07-25
PoC in GitHubcc3305/CVE-2021-222042024-06-07
PoC in GitHubRoronoawjd/CVE-2021-222042025-10-27
PoC in GitHubd4ytox/CVE-2021-222042026-06-13
PoC in GitHubcyfrowesny/exiftool-7.44-12.23-exploit-CVE-2021-222042026-10-16

History

History
RecordedChangedSources
exploitation
affected, aliases, exploits, referencesOSV
first indexedCVE List, EUVD, Exploit-DB, GitHub Advisories, CISA KEV, Metasploit, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-22204 is a medium vulnerability (CVSS 6.8) in Exiftool, published April 23, 2021. CISA lists it as known to be exploited, since November 17, 2021. EUVD reports exploitation since November 17, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 100.0%, the 99th percentile. Fixed in perl-image-exiftool 12.24-r0.

References

Show 27 moreShow less
This page doesn't list everything

Left out here: the rest of 1 source description. The JSON record has them.

MoveEnter Open