Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Gitlab-CVE-2021-22205 | Kitploit
Tools/GitHubGitHub/mr-r3bot/gitlab-cve-2021-22205
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubmr-r3bot/gitlab-cve-2021-22205

Gitlab-CVE-2021-22205

View Repository
181424 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Unauthenticated RCE on Gitlab version < 13.10.3

Unauthenticated RCE exploit for gitlab version < 13.10.3

For educational/research purpose only. Use at your own risk

Root cause:

  • When uploading image files, Gitlab Workhorse passes any files with the extensions jpg|jpeg|tiff through to ExifTool to remove any non-whitelisted tags.
  • One of the supported formats is DjVu. When parsing the DjVu annotation, the tokens are evaled to "convert C escape sequences".
  • Author's write-up: https://devcraft.io/2021/05/04/exiftool-arbitrary-code-execution-cve-2021-22204.html
root@kitploit:~
# convert C escape sequences (allowed in quoted text)
$tok = eval qq{"$tok"};

Credits

  • Reported by: https://hackerone.com/reports/1154542
  • Refered some code from here: https://github.com/CsEnox/GitLab-Wiki-RCE
  • Author's write up: https://devcraft.io/2021/05/04/exiftool-arbitrary-code-execution-cve-2021-22204.html

Usage

Need install djvumake & djvulibre to work

Install djvulibre ( if you haven't installed it yet)

root@kitploit:~
sudo apt-get install -y djvulibre-bin

Run exploit

root@kitploit:~
python3 exploit.py -t <gitlab_url> -c <command>

Tested on version 13.10.1-ce.0

Download Tool