CVE-2022-2095
GitLab vulnerability analysis and mitigation

Overview

An improper access control check in GitLab CE/EE affecting all versions starting from 13.7 before 15.0.5, all versions starting from 15.1 before 15.1.4, and all versions starting from 15.2 before 15.2.1 allows a malicious authenticated user to view a public project's Deploy Key's public fingerprint and name when that key has write permission. Note that GitLab never asks for nor stores the private key (GitLab Security Release, NVD).

Technical details

The vulnerability exists in the deploy keys autocomplete endpoint which only checks if the user can view the repository, not if they have write access to it. This differs from the REST API implementation which properly restricts access. The autocomplete endpoint at '/-/autocomplete/deploykeyswith_owners' allows unauthorized viewing of deploy keys by only checking repository view permissions (HackerOne Report).

Impact

The vulnerability allows non-project members to view deploy keys of public projects, potentially exposing sensitive project access information. While GitLab never stores private keys, exposure of public key fingerprints and names could provide attackers with information about project deployment infrastructure (GitLab Security Release).

Mitigation and workarounds

Users should upgrade to GitLab versions 15.0.5, 15.1.4, or 15.2.1 or later which contain the fix for this vulnerability. The issue has been patched by properly implementing access controls in the deploy keys autocomplete endpoint (GitLab Security Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-8405HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12029HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-11984MEDIUM6.8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-4097MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025
CVE-2025-12734LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 11, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management