Skip to main content
EPSS 0.2%top 90%

Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab (CVE-2026-13113)

0
Medium
Published: 08/17/2026 (08/17/2026, 06:06:29 UTC)
Source: GCVE Database
Product: gitlab

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

gitlab
pkg:gem/gitlab
Affected versions
>=17.0 <19.0.5>=19.1 <19.1.3>=19.2 <19.2.1
Bitnamimore threats →ghsa
gitlab
pkg:bitnami/gitlab
Affected versions
>=17.0.0 <19.0.5>=19.1.0 <19.1.3>=19.2.0 <19.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/10/2026, 23:02:59 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses