Skip to content
Heist/ feed
Back to feed
Medium

Improper Validation of Specified Type of Input in GitLab

Type: advisorySources: OSV

An issue has been discovered in GitLab affecting all versions before 16.2.0. Committing directories containing LF character results in 500 errors when viewing the commit.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2023-4522
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 05:47 UTC · Revision 1

Source evidence

Improper Validation of Specified Type of Input in GitLab

core-osv · Original source

Published 30 Aug 2023, 07:01 UTC

An issue has been discovered in GitLab affecting all versions before 16.2.0. Committing directories containing LF character results in 500 errors when viewing the commit.

osv:CVE-2023-4522
Complete source record
{
  "id": "d5a3c1965691e636d5b41423420762c00cc0d4621601522c40db37ee5466f06d",
  "url": "https://osv.dev/vulnerability/CVE-2023-4522",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Validation of Specified Type of Input in GitLab",
    "summary": "An issue has been discovered in GitLab affecting all versions before 16.2.0. Committing directories containing LF character results in 500 errors when viewing the commit.",
    "evidence": "osv:CVE-2023-4522",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2023-4522",
      "aliases": [
        "BIT-gitlab-2023-4522",
        "CVE-2023-4522"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gitlab-org/gitlab",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3adc0fe6e7c163bedd7faa5f0c4d1e5fbb6bf3c5"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "16.2.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "16.2.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v16.2.0-rc45-ee",
            "v16.2.0-rc44-ee",
            "v16.2.0-rc43-ee",
            "v16.2.0-rc42-ee",
            "11-10-0cfa69752d8-74ffd66ae-ee",
            "11-10-0cfa69752d8-0d9531c80-ee",
            "11-10-119f9509d50-6d7537235-ee",
            "v7.3.0-ee",
            "v7.3.0.rc1-ee",
            "v7.2.0.rc5-ee",
            "v7.2.0.rc4-ee",
            "v7.2.0.rc3-ee",
            "v7.2.0.rc2-ee",
            "v7.2.0.rc1-ee",
            "v7.1.0-ee",
            "v7.1.0.rc1-ee",
            "v7.0.0-ee",
            "v6.8.0-ee",
            "v6.7.0-ee",
            "v6.7.0.rc1-ee",
            "v6.6.0-ee",
            "v6.5.0-ee",
            "v6.4.0-ee",
            "v6.3.1-ee",
            "v6.3.0-ee",
            "v6.1.0-ee",
            "v6.0.0-ee",
            "v6.0.0-ee.rc1",
            "v6.0.0-ee.beta",
            "v5.2.0",
            "v5.1.0",
            "v5.0.0",
            "v4.0.0",
            "v4.0.0rc2",
            "v4.0.0rc1",
            "v3.1.0",
            "v3.0.3",
            "v3.0.2",
            "v3.0.1",
            "v3.0.0",
            "v2.9.1",
            "v2.9.0",
            "v2.8.2",
            "v2.8.1",
            "v2.8.0",
            "v2.8.0pre",
            "v2.7.0",
            "v2.7.0pre",
            "v2.6.3",
            "v2.6.2",
            "v2.6.1",
            "v2.6.0",
            "v2.6.0pre",
            "v2.5.0",
            "v2.4.1",
            "v2.4.0",
            "v2.4.0pre",
            "v2.3.1",
            "v2.3.0",
            "v2.3.0pre",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.2.0pre"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-4522.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.243758261Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SJ42V7O7F4OU6R7QSQQECLB6LDHKZIMQ/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4522.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-4522",
        "https://gitlab.com/gitlab-org/gitlab/-/issues/406817",
        "https://hackerone.com/reports/1937213"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-1287"
        ],
        "cna_assigner": "GitLab",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/4xxx/CVE-2023-4522.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-4522",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492844,
  "published_at": "2023-08-30T07:01:19.117+00:00"
}