CVE-2026-13113

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

Published Jul 29, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
GitLab has remediated an issue in GitLab EE affecting all versions from 17.0 before 19.0.5, 19.1 before 19.1.3, and 19.2 before 19.2.1 that under certain conditions could have allowed an authenticated user to merge code into a protected branch without the required approvals due to a race condition in approval rule processing.

Analysis

AI-generated

Technical impact

The vulnerability is a time‑of‑check time‑of‑use race condition in how GitLab processes approval rules during a merge to a protected branch. An authenticated user who can initiate a merge could, by exploiting the condition, merge code before the approval requirement is enforced. This allows the user to bypass mandatory approvals, potentially inserting malicious or unstable changes into the protected code base. The weakness is identified as CWE‑367.

Affected Systems

Affected systems are GitLab Enterprise Edition installations. All releases from 17.0 up to (but excluding) 19.0.5, from 19.1 up to 19.1.3, and from 19.2 up to 19.2.1 are vulnerable. Users whose installations fall within those ranges should consider themselves impacted. The official CNA remedy is to upgrade to GitLab 19.0.5, 19.1.3, 19.2.1 or any newer release, which includes the fix for this race condition.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity. The EPSS score of less than 1% suggests a low likelihood of exploitation, and the vulnerability is not listed in CISA's KEV catalog. The attack vector would require authenticated access with merge capability on a protected branch; the condition exploits a race between checking approval status and performing the merge. While exploitation is unlikely to be widespread, the potential to alter protected code without approval warrants prompt remediation.

Remediation

Vendor Solution

Upgrade to versions 19.0.5, 19.1.3, 19.2.1 or above.


OpenCVE Recommended Actions

  • Apply the vendor patch by upgrading to GitLab 19.0.5, 19.1.3, 19.2.1 or later.
  • Limit merge permission for users who do not need access to protected branches.
  • Enable audit logging for merge events and review logs for unauthorized merges until the patch is applied.

Generated by OpenCVE AI on August 3, 2026 at 13:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description GitLab has remediated an issue in GitLab EE affecting all versions from 17.0 before 19.0.5, 19.1 before 19.1.3, and 19.2 before 19.2.1 that under certain conditions could have allowed an authenticated user to merge code into a protected branch without the required approvals due to a race condition in approval rule processing.
Title Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab
First Time appeared Gitlab
Gitlab gitlab
Weaknesses CWE-367
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
Vendors & Products Gitlab
Gitlab gitlab
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Aug 20, 2026, 1:55 PM
Reserved
Jun 23, 2026, 8:33 PM
Status
Analyzed
Published
Jul 29, 2026, 8:17 PM
Modified
Aug 3, 2026, 1:29 PM