CVE-2023-5226

published 1 Dec 2023 · updated 14 Aug 2026

Improper Control of Generation of Code ('Code Injection') in GitLab

5.8MediumCVSS 4.8EPSS 1%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in GitLab 16.4.3, GitLab 16.5.3 and GitLab 16.6.1.

An issue has been discovered in GitLab affecting all versions before 16.4.3, all versions starting from 16.5 before 16.5.3, all versions starting from 16.6 before 16.6.1. Under certain circumstances, a malicious actor bypass prohibited branch checks using a specially crafted branch name to manipulate repository content in the UI.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitLabGitLab<16.4.3, >=16.5 <16.5.3, >=16.6 <16.6.116.4.3, 16.5.3, 16.6.1

Exploit evidence

2 public sources

Vendor advisories

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in GitLab, strongest first

10.0CriticalPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-5226 severity on Zeptric[![CVE-2023-5226](https://zeptric.io/badge/cve/CVE-2023-5226.svg)](https://zeptric.io/cve/CVE-2023-5226)