What’s Vulnerable › Vulnerabilities
CVE-2021-22257
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-10-05 · updated 2026-06-17
Description
An issue has been discovered in GitLab affecting all versions starting from 14.0 before 14.0.9, all versions starting from 14.1 before 14.1.4, all versions starting from 14.2 before 14.2.2. The route for /user.keys is not restricted on instances with public visibility disabled. This allows user enumeration on such instances.
Affected products
- GitLab: from 14.0.0 before 14.0.9; from 14.1.0 before 14.1.4; from 14.2.0 before 14.2.2 — fixed in 14.0.9, 14.1.4, 14.2.2
How to fix
Upgrade to a fixed version: GitLab 14.0.9, 14.1.4, 14.2.2. Check the vendor advisory for mitigations.
References
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22257.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/23832
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22257.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/23832
Get alerted when CVE-2021-22257 or the next vulnerability affects your stack