CVE-2023-5512

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

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

Remediation

Vendor Solution

Upgrade to versions 16.6.2, 16.5.4, 16.4.4 or above.

Tracking

Sign in to view the affected projects.

Advisories

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

Sources

Status
PUBLISHED
Assigner
GitLab
Published
Updated
Apr 28, 2026, 4:05 AM
Reserved
Oct 11, 2023, 12:30 AM
Status
Modified
Published
Dec 15, 2023, 4:15 PM
Modified
Jun 17, 2026, 6:48 AM