CVE-2023-5226

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

Published Dec 1, 2023 CVSS 3.1 · 4.8 Medium EPSS < 1% KEV · Not listed
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.

Remediation

Vendor Solution

Upgrade to versions 16.4.3, 16.5.3, 16.6.1 or above.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-57555 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.
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Aug 14, 2026, 4:13 AM
Reserved
Sep 27, 2023, 1:01 PM
Status
Modified
Published
Dec 1, 2023, 7:15 AM
Modified
Jun 17, 2026, 6:48 AM