CVE-2023-5512

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-5512
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-5512.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-5512
Aliases
Downstream
Published
2023-12-15T16:03:00.260Z
Modified
2025-12-05T04:07:11.994822Z
Severity
  • 4.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N CVSS Calculator
Summary
Improper Control of Generation of Code ('Code Injection') in GitLab
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-94"
    ],
    "cna_assigner": "GitLab",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/5xxx/CVE-2023-5512.json"
}
References

Affected packages

Git / gitlab.com/gitlab-org/gitlab

Affected ranges

Type
GIT
Repo
https://gitlab.com/gitlab-org/gitlab
Events
Database specific
{
    "versions": [
        {
            "introduced": "16.3"
        },
        {
            "fixed": "16.4.4"
        }
    ]
}
Type
GIT
Repo
https://gitlab.com/gitlab-org/gitlab
Events
Database specific
{
    "versions": [
        {
            "introduced": "16.5"
        },
        {
            "fixed": "16.5.4"
        }
    ]
}
Type
GIT
Repo
https://gitlab.com/gitlab-org/gitlab
Events
Database specific
{
    "versions": [
        {
            "introduced": "16.6"
        },
        {
            "fixed": "16.6.2"
        }
    ]
}

Affected versions

v16.*

v16.5.0-ee
v16.5.1-ee
v16.5.2-ee
v16.5.3-ee
v16.6.0-ee
v16.6.1-ee