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
CVE-2021-22205 — CVE-2021-22205 - GitLab Unauthenticated Remote Code Execution | Kitploit
Tools/GitHubGitHub/k3ystr0k3r/cve-2021-22205
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRemote Access Tool
GitHubk3ystr0k3r/cve-2021-22205

CVE-2021-22205

CVE-2021-22205 - GitLab Unauthenticated Remote Code Execution

View Repository
2 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-22205 - GitLab Unauthenticated Remote Code Execution

CVE-2021-22205 is a critical Remote Code Execution (RCE) vulnerability affecting GitLab Community Edition (CE) and Enterprise Edition (EE). The vulnerability originates from improper validation of uploaded image files that are processed by the third-party utility ExifTool. An attacker can craft a malicious file that triggers arbitrary command execution on the GitLab server. The vulnerability received a CVSS score of 10.0 (Critical) and has been observed being actively exploited in the wild.

Affected Versions

The vulnerability affects GitLab CE/EE versions starting from 11.9 up to the following releases:

  • Earlier than 13.8.8
  • Earlier than 13.9.6
  • Earlier than 13.10.3

Organizations running vulnerable versions of GitLab were at risk of complete server compromise through a simple file upload attack.

Technical Details

GitLab uses ExifTool to extract and sanitize metadata from uploaded image files. ExifTool itself contained a vulnerability involving the processing of specially crafted DjVu files (tracked as CVE-2021-22204). GitLab incorrectly trusted file extensions and passed uploaded files to ExifTool without sufficient validation.

An attacker could disguise a malicious DjVu payload as an image file. When GitLab processed the file, ExifTool would interpret the malicious metadata and execute attacker-controlled commands on the server. The attack eventually became recognized as exploitable without authentication, significantly increasing its severity.

Impact

Successful exploitation may allow an attacker to:

Download Tool
  • Execute arbitrary commands on the GitLab server.
  • Gain access to source code repositories.
  • Steal credentials and sensitive data.
  • Deploy malware, cryptominers, or ransomware.
  • Establish persistent access within the environment.
  • Perform lateral movement inside corporate networks.
  • Because many organizations expose GitLab instances directly to the internet, this vulnerability represented a severe supply-chain and infrastructure security risk.

    Exploitation in the Wild

    Following public disclosure, security researchers and threat actors rapidly developed working exploits. Multiple reports documented widespread scanning and exploitation attempts against publicly accessible GitLab instances. The vulnerability was later added to CISA's Known Exploited Vulnerabilities (KEV) catalog.

    Mitigation

    Administrators should immediately upgrade to one of the patched releases:

    • GitLab 13.10.3 or later
    • GitLab 13.9.6 or later
    • GitLab 13.8.8 or later

    Additional recommendations include:

    • Restrict public access to GitLab when possible.
    • Disable unnecessary user registration.
    • Monitor upload activity and system logs.
    • Regularly apply security updates.

    GitLab officially urged self-managed customers to update as soon as possible after exploitation activity was observed.

    References

    • NVD: CVE-2021-22205
    • GitLab Security Advisory
    • Rapid7 Analysis
    • CISA Known Exploited Vulnerabilities Catalog

    Disclaimer

    This repository is intended solely for educational purposes, security research, and authorized testing environments. Any proof-of-concept (PoC) code provided is designed to help security professionals understand the vulnerability and verify remediation efforts. Unauthorized testing against systems you do not own or have explicit permission to assess may violate applicable laws and regulations.