CVE-2025-12697
GitLab vulnerability analysis and mitigation

Overview

CVE-2025-12697 is an improper escaping of output vulnerability in the Datadog integration of GitLab CE/EE that could allow an authenticated user with maintainer-role permissions to reveal Datadog API credentials under certain conditions. It affects all GitLab CE/EE versions from 15.5 before 18.7.6, 18.8 before 18.8.6, and 18.9 before 18.9.2. The vulnerability was disclosed and patched on March 11, 2026. It carries a CVSS v3.1 base score of 2.2 (Low) per the official GitLab advisory, though NVD records a score of 4.4 (Medium) (GitLab Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-116 (Improper Encoding or Escaping of Output), specifically within GitLab's Datadog integration component. Due to insufficient output escaping, a maintainer-level user can trigger conditions that expose Datadog API credentials stored within the GitLab instance. The attack vector is network-based, requires high privileges (maintainer role), and involves high attack complexity, meaning specific environmental or configuration conditions must be met for exploitation to succeed (GitLab Advisory, Red Hat CVE). The vulnerability was reported by researcher shells3c through GitLab's HackerOne bug bounty program (HackerOne report #3341953) (GitLab Advisory).

Impact

Successful exploitation could allow a maintainer-level attacker to obtain Datadog API credentials configured within the GitLab instance, potentially enabling unauthorized access to the organization's Datadog monitoring infrastructure, dashboards, and observability data. The impact is limited to confidentiality (no integrity or availability impact), and the scope is unchanged, meaning exploitation does not facilitate direct lateral movement within GitLab itself. However, compromised Datadog credentials could expose sensitive operational telemetry, application performance data, and infrastructure metrics (GitLab Advisory, Red Hat CVE).

Exploitability

There is no public proof-of-concept exploit available, and no evidence of in-the-wild exploitation has been observed as of the time of disclosure. The EPSS score is approximately 0.009% (0.000090), reflecting a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation is further constrained by the requirement for an authenticated maintainer-level account and specific conditions to be present (Red Hat CVE, GitLab Advisory).

Mitigation and workarounds

GitLab has released patched versions addressing this vulnerability: 18.7.6, 18.8.6, and 18.9.2 for both CE and EE editions, published on March 11, 2026. GitLab.com is already running the patched version; GitLab Dedicated customers do not need to take action. Self-managed administrators should upgrade immediately. As interim measures, organizations should restrict maintainer-role permissions to trusted users only, rotate Datadog API credentials if exposure is suspected, and review audit logs for suspicious activity by maintainer-level accounts (GitLab Advisory).

Community reactions

The vulnerability was reported through GitLab's HackerOne bug bounty program by researcher shells3c and was addressed as part of a broader scheduled patch release on March 11, 2026, which also included several higher-severity fixes. No notable independent researcher commentary or significant media coverage specific to CVE-2025-12697 has been identified, consistent with its low severity rating (GitLab Advisory).

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-2026-75871CRITICAL9.6
  • GitLab logoGitLab
  • gitlab
NoYesAug 27, 2026
CVE-2026-18252HIGH8.1
  • GitLab logoGitLab
  • gitlab-rails-19.2
NoYesAug 26, 2026
CVE-2026-77801MEDIUM6.5
  • GitLab logoGitLab
  • gitlab-runner-19.1
NoYesAug 26, 2026
CVE-2026-3035MEDIUM5.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-7487LOW3.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026

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