Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-13611 Overview
GitLab has patched an information disclosure vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE). The flaw affects all versions from 13.2 before 18.5.5 and 18.6 before 18.6.3. An authenticated user with access to certain logs could obtain sensitive tokens under specific conditions. The issue is classified under CWE-532 (Insertion of Sensitive Information into Log File). GitLab remediated the flaw in patch releases 18.5.5 and 18.6.3.
Critical Impact
Authenticated users with log access can retrieve sensitive tokens, enabling potential lateral movement or impersonation across GitLab-integrated systems.
Affected Products
- GitLab CE versions 13.2 through 18.5.4
- GitLab EE versions 13.2 through 18.5.4
- GitLab CE/EE versions 18.6.0 through 18.6.2
Discovery Timeline
- 2025-11-26 - CVE-2025-13611 published to NVD
- 2026-01-07 - GitLab patch release 18.7.1 announced
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-13611
Vulnerability Analysis
The vulnerability stems from improper handling of sensitive data written to GitLab log files. Under specific runtime conditions, GitLab records tokens in log records that authenticated users with log-viewing privileges can read. This exposes credentials that should remain confined to the application's secret storage layer.
An authenticated attacker with access to the affected logs can extract these tokens and reuse them. Depending on the token type, reuse could enable API access, CI/CD pipeline manipulation, or unauthorized repository actions. The attack complexity is high because the exposure depends on specific conditions and requires existing log access rights.
Root Cause
The root cause is failure to redact or exclude sensitive credential material before writing structured log entries. Applications that log request payloads, integration callbacks, or exception traces without token filtering commonly exhibit this class of flaw. GitLab's fix introduces sanitization of the affected log paths so that tokens are no longer serialized to disk.
Attack Vector
Exploitation requires network reachability to the GitLab instance and an authenticated account that already holds permission to view the relevant logs. This typically means project maintainers, group owners, administrators, or auditors depending on log source. The attacker triggers or waits for the specific condition that causes token logging, then reads the log record and extracts the credential for downstream reuse.
No exploit code is publicly available. See the GitLab Issue #545947 Discussion for technical background.
Detection Methods for CVE-2025-13611
Indicators of Compromise
- Log entries in production.log, api_json.log, or job trace logs containing token-shaped strings such as glpat-, glptt-, or CI job token prefixes.
- Access to log files or Kibana/Elasticsearch log indices by non-administrative accounts.
- Unexpected API calls or Git operations authenticated with tokens shortly after log access events.
Detection Strategies
- Search historical GitLab logs for token patterns and treat any matched credentials as compromised.
- Correlate log-read events with subsequent authentication activity from the same user or from external IPs using the same token.
- Alert on privilege escalations or newly created personal access tokens following log access by non-admin users.
Monitoring Recommendations
- Forward GitLab application and audit logs to a centralized SIEM for token-pattern matching and behavioral analysis.
- Monitor GitLab audit events for log downloads, job trace exports, and administrative log queries.
- Track token usage anomalies including new source IPs, user-agent changes, and off-hours API activity.
How to Mitigate CVE-2025-13611
Immediate Actions Required
- Upgrade GitLab CE/EE to version 18.5.5, 18.6.3, or later immediately.
- Rotate all personal access tokens, project access tokens, deploy tokens, and CI/CD variables that may have been logged.
- Review historical logs for exposed tokens and revoke any credentials found.
- Audit log access permissions and restrict log-viewing roles to the minimum necessary personnel.
Patch Information
GitLab remediated the issue in versions 18.5.5 and 18.6.3. A subsequent patch release, 18.7.1, is documented in the GitLab Patch Release Announcement. Self-managed instances should upgrade using the standard package manager or Docker workflow. GitLab.com is patched by the vendor.
Workarounds
- Restrict log file system access on self-managed GitLab servers to root and the git service account only.
- Limit the Auditor and administrative roles to accounts that strictly require log visibility.
- Purge or archive existing log files that predate the upgrade after extracting any needed forensic evidence.
# Verify installed GitLab version
sudo gitlab-rake gitlab:env:info | grep "GitLab information" -A 5
# Upgrade on Debian/Ubuntu
sudo apt-get update && sudo apt-get install gitlab-ee=18.6.3-ee.0
# Restrict log directory permissions
sudo chown -R git:git /var/log/gitlab
sudo chmod -R 750 /var/log/gitlab
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

