{"answers":{"affected":"It affects 3 products.","exploited":"Yes. Attackers have exploited CVE-2021-22204 in the wild since at least 17 Nov 2021.","fix":"Upgrade to a fixed version. US federal agencies must fix it by 1 Dec 2021.","what":"CVE-2021-22204 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 23 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-22204 and fix it if it is affected.\n\nWhat it is: CVE-2021-22204 is a medium-severity code injection vulnerability in Debian Debian Linux, published on 23 Apr 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2021-22204 in the wild since at least 17 Nov 2021.\n\nAffected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-22204/ (Markdown: https://insights.sbomify.com/CVE-2021-22204/index.md)","id":"CVE-2021-22204","markdown":"https://insights.sbomify.com/CVE-2021-22204/index.md","name":"CVE-2021-22204","record":{"aliases":["DEBIAN-CVE-2021-22204","DLA-2663-1","DSA-4910-1","GHSA-9377-7hwr-p4w6","MGASA-2021-0259","UBUNTU-CVE-2021-22204","USN-4987-1","USN-4987-2","openSUSE-SU-2021:0707-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"ExifTool library","requires_auth":"none","summary":"Attackers can execute arbitrary code by tricking users into processing a malicious DjVu image with ExifTool.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitLab","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"exiftool","vendor":"exiftool_project"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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","ecosystems":["SUSE:Package Hub 15 SP1","SUSE:Package Hub 15 SP2","openSUSE:Leap 15.2"],"exploits":{"exploitdb":1,"first_seen":"2021-04-14","github_poc":16,"max_poc_stars":98,"metasploit":2,"nuclei":0,"refs":[{"date":"2021-05-11T18:45:07Z","kind":"github_poc","ref":"https://github.com/convisolabs/CVE-2021-22204-exiftool","stars":98,"title":"Python exploit for the CVE-2021-22204 vulnerability in Exiftool"},{"date":"2022-04-16T22:49:47Z","kind":"github_poc","ref":"https://github.com/UNICORDev/exploit-CVE-2021-22204","stars":55,"title":"Exploit for CVE-2021-22204 (ExifTool) - Arbitrary Code Execution"},{"date":"2021-08-02T18:56:16Z","kind":"github_poc","ref":"https://github.com/AssassinUKG/CVE-2021-22204","stars":28,"title":null},{"date":"2021-05-12T08:51:44Z","kind":"github_poc","ref":"https://github.com/se162xg/CVE-2021-22204","stars":12,"title":"exiftool arbitrary code execution vulnerability"},{"date":"2022-02-21T11:07:19Z","kind":"github_poc","ref":"https://github.com/mr-tuhin/CVE-2021-22204-exiftool","stars":9,"title":"exiftool exploit"},{"date":"2021-05-21T00:14:52Z","kind":"github_poc","ref":"https://github.com/bilkoh/POC-CVE-2021-22204","stars":8,"title":"POC for exiftool vuln (CVE-2021-22204)."},{"date":"2023-05-14T03:43:28Z","kind":"github_poc","ref":"https://github.com/Akash7350/CVE-2021-22204","stars":4,"title":null},{"date":"2021-08-02T09:11:27Z","kind":"github_poc","ref":"https://github.com/PenTestical/CVE-2021-22204","stars":3,"title":null}],"tier":"exploited"},"has_fix":true,"headline":"ExifTool Remote Code Execution","id":"CVE-2021-22204","indexable":true,"kev":{"dateAdded":"2021-11-17","dueDate":"2021-12-01","knownRansomwareCampaignUse":"Unknown","product":"Exiftool","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Perl","vulnerabilityName":"ExifTool Remote Code Execution Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora"],"type":"code_injection","year":"2021"},"n_packages":3,"n_references":14,"next":{"headline":"GitLab Community and Enterprise Editions Remote Code Execution","id":"CVE-2021-22205"},"packages":[{"ecosystem":"SUSE:Package Hub 15 SP1","fixed":["12.25-bp152.4.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Image-ExifTool","purl":"pkg:rpm/suse/perl-Image-ExifTool\u0026distro=SUSE%20Package%20Hub%2015%20SP1","source":"openSUSE-SU-2021:0707-1"},{"ecosystem":"SUSE:Package Hub 15 SP2","fixed":["12.25-bp152.4.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Image-ExifTool","purl":"pkg:rpm/suse/perl-Image-ExifTool\u0026distro=SUSE%20Package%20Hub%2015%20SP2","source":"openSUSE-SU-2021:0707-1"},{"ecosystem":"openSUSE:Leap 15.2","fixed":["12.25-bp152.4.3.1"],"introduced":["0"],"last_affected":[],"package":"perl-Image-ExifTool","purl":"pkg:rpm/opensuse/perl-Image-ExifTool\u0026distro=openSUSE%20Leap%2015.2","source":"openSUSE-SU-2021:0707-1"}],"prev":{"headline":"Path traversal in GitLab","id":"CVE-2021-22203"},"products":["ExifTool"],"published":"2021-04-23","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["ExifTool"]},"summary":"Attackers can execute arbitrary code by tricking users into processing a malicious DjVu image with ExifTool.","url":"https://insights.sbomify.com/CVE-2021-22204/"}