CVE-2021-22214 Server-side request forgery in GitLab
Unauthenticated attackers can exploit SSRF in GitLab when internal network requests for webhooks are enabled, potentially accessing internal resources.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-22214?
CVE-2021-22214 is a medium-severity server-side request forgery vulnerability in Gitlab Gitlab, published on 8 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab CE/EE affecting all versions starting from 10.5 was possible to exploit for an unauthenticated attacker even on a GitLab instance where registration is limited
Weakness: CWE-918
Which versions are affected by CVE-2021-22214?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | From 10.5.0 | 13.10.5, 13.11.5, 13.12.2 |
Products include Gitlab Gitlab.
How do I fix CVE-2021-22214?
Upgrade gitlab to a fixed version for your release line: 13.10.5, 13.11.5 or 13.12.2.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2021-22214 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-22214 exists.
Public exploit code: 1 Nuclei template and 4 proofs of concept on GitHub.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as BIT-gitlab-2021-22214, GHSA-6jpw-pq5v-3x7w, UBUNTU-CVE-2021-22214.