CVE-2023-5512

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

MEDIUM
5.7
CVSS Score
Published: December 15, 2023 at 04:03 PM UTC
Updated: June 17, 2026 at 06:48 AM UTC
1 product affected across 1 vendorGitLab

Using GitLab by GitLab?

Get instant alerts when new vulnerabilities affect GitLab - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.7
Exploit prediction
EPSS 0.5%

Description

An issue has been discovered in GitLab CE/EE affecting all versions from 16.3 before 16.4.4, all versions starting from 16.5 before 16.5.4, all versions starting from 16.6 before 16.6.2. File integrity may be compromised when specific HTML encoding is used for file names leading for incorrect representation in the UI.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

16.3 ≤ v < 16.4.416.3.0 ≤ v < 16.4.416.5 ≤ v < 16.5.416.5.0 ≤ v < 16.5.416.6 ≤ v < 16.6.216.6.0 ≤ v < 16.6.216.316.516.6
Affected range stops below 16.4.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.5.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.6.2, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (2)

Issue TrackingPermissions RequiredBroken Link
https://gitlab.com/gitlab-org/gitlab/-/issues/427827
Technical DescriptionExploitPermissions Required
https://hackerone.com/reports/2194607

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-94

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card