Stackurity Start free trial

CVEs / CVE-2021-22205

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

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2021-22205

Summary

GitHub Community and Enterprise Editions that utilize the ability to upload images through GitLab Workhorse are vulnerable to remote code execution. Workhorse passes image file extensions through ExifTool, which improperly validates the image files.

CISA, Known Exploited Vulnerabilities catalog

Description

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.

The CVE record, via NVD · published 23 Apr 2021 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
GitLab GitLab>=11.9, <13.8.8—
GitLab GitLab>=13.9, <13.9.6—
GitLab GitLab>=13.10, <13.10.3—

Exploitation

In CISA KEV since3 Nov 2021
Due date for US federal agencies17 Nov 2021
Used in ransomware campaignsKnown
Required actionApply updates per vendor instructions.

Severity

CVSS 3.110 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Scored by NVD
WeaknessCWE-94

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.