CVE-2023-5512
GitLab vulnerability analysis and mitigation

Overview

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. The vulnerability allows file integrity to be compromised when specific HTML encoding is used for file names, leading to incorrect representation in the UI (GitLab Release, NVD).

Technical details

The vulnerability stems from improper handling of character encoding in file names, specifically when the %2f character is used. GitLab's web interface does not perform proper additional encoding, which can lead to incorrect representation of file names and content. The issue has been assigned a CVSS v3.1 base score of 4.8 (Medium) with the vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N. The vulnerability is classified as CWE-94 (Improper Control of Generation of Code) (NVD).

Impact

This vulnerability enables attackers to create repositories with malicious content that appears harmless in GitLab's web interface. When users download or clone the repository, they may unknowingly obtain files with malicious content, potentially resulting in the execution of arbitrary commands on the victim's system. For example, a file named dir%2f__hello__.sh could display different contents in the web interface compared to its actual contents when downloaded (GitLab Issue).

Mitigation and workarounds

The vulnerability has been fixed in GitLab versions 16.4.4, 16.5.4, and 16.6.2. Users are strongly recommended to upgrade to these patched versions immediately. GitLab.com has already been updated with the patched version (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-9222HIGH8.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13761HIGH8
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13772HIGH7.1
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-13781MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026
CVE-2025-3950LOW3.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesJan 09, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management