Skip to content
Server Security Center
KEVcritical10.0 Used in ransomware campaigns

CVE-2021-22205: GitLab Community and Enterprise Editions Remote Code Execution

GitLab Community and Enterprise Editions · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.

CVSS v3.1 (CVE record)
10.0
critical
EPSS (exploit probability, 30 days)
99.7%
among the highest 0.1% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2021-11-17
Ubuntu priority
medium

What is CVE-2021-22205?

An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resulted in a remote command execution.

CISA required action: Apply updates per vendor instructions.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • GitLab
    Affected
    • 11.9
    • < 13.8.8
    • 13.9
    • < 13.9.6
    • 13.10
    • < 13.10.3
    Fixed in
    not stated

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace gitlab with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="gitlab"'

No fixed version available

No Ubuntu or Debian release has published a fixed version of gitlab yet, so every installed version is affected. Until a fix is published:

  • Apply the mitigation from the vendor's or your distribution's advisory (see References below).
  • If the server does not need the package, remove it, or replace it with a maintained alternative.
  • Restrict exposure: keep the affected service off the internet, limit access with a firewall or VPN, and turn off the vulnerable feature where you can.

This page updates automatically when Ubuntu or Debian publish a fix.

Ubuntu 16.04 LTS has reached end of life and no longer gets regular security fixes – upgrade to a supported release.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.