Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab (CVE-2026-13113)
A race condition vulnerability in GitLab Enterprise Edition versions 17.0 up to but not including 19.0.5, 19.1 up to 19.1.3, and 19.2 up to 19.2.1 could allow an authenticated user to merge code into a protected branch without the required approvals. This issue arises from a time-of-check to time-of-use (TOCTOU) flaw in the approval rule processing logic. The vulnerability has been remediated in fixed versions.
AI Analysis
Technical Summary
GitLab EE contained a TOCTOU race condition affecting approval rule processing that could permit an authenticated user to bypass required approvals and merge code into protected branches. The flaw impacts versions >=17.0 <19.0.5, >=19.1 <19.1.3, and >=19.2 <19.2.1. The issue has been addressed by GitLab in subsequent releases, mitigating the risk of unauthorized code merges due to this race condition.
Potential Impact
An authenticated user could exploit this race condition to merge code into protected branches without obtaining the necessary approvals, potentially undermining branch protection policies and code review processes. This could lead to unauthorized code changes being integrated into critical branches.
Mitigation Recommendations
A patch is available and users should upgrade to GitLab EE versions 19.0.5 or later, 19.1.3 or later, and 19.2.1 or later to remediate this vulnerability. Applying these official fixes will prevent exploitation of the TOCTOU race condition.
Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab (CVE-2026-13113)
Description
A race condition vulnerability in GitLab Enterprise Edition versions 17.0 up to but not including 19.0.5, 19.1 up to 19.1.3, and 19.2 up to 19.2.1 could allow an authenticated user to merge code into a protected branch without the required approvals. This issue arises from a time-of-check to time-of-use (TOCTOU) flaw in the approval rule processing logic. The vulnerability has been remediated in fixed versions.
Affected software
pkg:gem/gitlabpkg:bitnami/gitlabRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
GitLab EE contained a TOCTOU race condition affecting approval rule processing that could permit an authenticated user to bypass required approvals and merge code into protected branches. The flaw impacts versions >=17.0 <19.0.5, >=19.1 <19.1.3, and >=19.2 <19.2.1. The issue has been addressed by GitLab in subsequent releases, mitigating the risk of unauthorized code merges due to this race condition.
Potential Impact
An authenticated user could exploit this race condition to merge code into protected branches without obtaining the necessary approvals, potentially undermining branch protection policies and code review processes. This could lead to unauthorized code changes being integrated into critical branches.
Mitigation Recommendations
A patch is available and users should upgrade to GitLab EE versions 19.0.5 or later, 19.1.3 or later, and 19.2.1 or later to remediate this vulnerability. Applying these official fixes will prevent exploitation of the TOCTOU race condition.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-629v-rwjx-m485
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-13113"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a6ae5339c2644c7f89866d0
Added to database: 07/30/2026, 05:46:27 UTC
Last enriched: 09/10/2026, 23:02:59 UTC
Last updated: 09/14/2026, 22:01:31 UTC
Views: 39
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.