CVE-2023-5226 MEDIUM

CVE-2023-5226: Improper Control of Generation of Code ('Code Injection') in GitLab

Vendor Gitlab
Product GitLab
Weakness CWE-94 · Code injection
Published December 1, 2023
Last update April 23, 2026

CVSS base score

4.8/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction Required
Confidentiality None
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

December 1, 2023 CVE published
April 23, 2026 Record updated