CVE-2023-5226

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

State
Published
Severity
4.8 Medium
Published
Dec 1, 2023
Updated
Aug 14, 2026
Reserved
Sep 27, 2023

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
3.14.8 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:NGitLab

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
GitLabGitLab
  • before 16.4.3Affected
  • 16.5 to before 16.5.3Affected
  • 16.6 to before 16.6.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.