CVE-2023-3401

published 2 Aug 2023 · updated 14 Aug 2026

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

5.8MediumCVSS 4.8EPSS 1%3 public exploits

3 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.0.8, GitLab 16.1.3 and GitLab 16.2.2.

An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. The main branch of a repository with a specially designed name allows an attacker to create repositories with malicious code.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitLabGitLab<16.0.8, >=16.1.0 <16.1.3, >=16.2.0 <16.2.216.0.8, 16.1.3, 16.2.2

Exploit evidence

3 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-3401 severity on Zeptric[![CVE-2023-3401](https://zeptric.io/badge/cve/CVE-2023-3401.svg)](https://zeptric.io/cve/CVE-2023-3401)