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.
Published: 2026-07-29
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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 yet.

History

Wed, 29 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 29 Jul 2026 19:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitLab

Published:

Updated: 2026-07-29T19:43:09.825Z

Reserved: 2026-06-23T20:33:43.206Z

Link: CVE-2026-13113

cve-icon Vulnrichment

Updated: 2026-07-29T19:42:22.132Z

cve-icon NVD

Status : Analyzed

Published: 2026-07-29T20:17:00.550

Modified: 2026-08-03T13:29:14.830

Link: CVE-2026-13113

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T13:15:05Z

Weaknesses
  • CWE-367

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