Skip to content
TrackCVE
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2023-5512

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

Medium4.8Public exploitEPSS 0.49%
Published
Updated
Reserved
Assigned by
GitLab

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.

Public exploit

A reference of the record is tagged as an exploit or proof of concept: anyone can try it against an unpatched system.

Timeline

  1. ID reserved

    By GitLab

  2. · 2 months later

    Published

  3. · 2 years later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

CVSS scores of CVE-2023-5512, by who scored it
Scored byCVSSScoreVector
GitLabCNA (assigner)3.1Medium4.8CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
NVDNVD · Modified3.1Medium5.7CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
EPSS (exploitation in 30 days)
0.49% · top 57% of all CVEs (7 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.8.

Weakness

Affected products

  • GitLab · GitLab

    • affected 16.3 – < 16.4.4
    • affected 16.5 – < 16.5.4
    • affected 16.6 – < 16.6.2

What to do

Solution: Upgrade to versions 16.6.2, 16.5.4, 16.4.4 or above.

References (2)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2023-5512 badge
[![CVE-2023-5512](https://trackcve.app/badge/CVE-2023-5512.svg)](https://trackcve.app/cve/CVE-2023-5512)

Record last updated .