CVE-2021-22214 Server-side request forgery in GitLab

Medium 6.8 Published Updated

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.

PackageAffectedFixed in
gitlab BitnamiFrom 10.5.013.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.

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2021-22214, GHSA-6jpw-pq5v-3x7w, UBUNTU-CVE-2021-22214.

Is CVE-2021-22214 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free