{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.5"
              },
              {
                "fixed": "17.6.5"
              }
            ]
          },
          "events": [
            {
              "introduced": "173959793c1163052d16c2158773ea9504aa712e"
            },
            {
              "fixed": "53bac28a6c50e5c1efa8b8d2520b24f32993682f"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.7"
              },
              {
                "fixed": "17.7.4"
              }
            ]
          },
          "events": [
            {
              "introduced": "1fd574ee5710155adf5307fba45132264dcb64a1"
            },
            {
              "fixed": "fd7fac14bde2a6aede8d3d68558c4761364e13df"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "17.8"
              },
              {
                "fixed": "17.8.2"
              }
            ]
          },
          "events": [
            {
              "introduced": "f03594b9e09b648c839e9c008286a24c93c82373"
            },
            {
              "fixed": "290b47ded8be87247276edd4d9117662c70366c3"
            }
          ],
          "repo": "https://gitlab.com/gitlab-org/gitlab",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "GitLab",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1540.json"
  },
  "details": "An issue has been discovered in GitLab CE/EE for Self-Managed and Dedicated instances affecting all versions from 17.5 prior to 17.6.5, 17.7 prior to 17.7.4, and 17.8 prior to 17.8.2. It was possible for a user added as an External to read and clone internal projects under certain circumstances.\"",
  "id": "CVE-2025-1540",
  "modified": "2026-04-01T23:07:59.581153388Z",
  "published": "2025-03-06T08:31:07.791Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://about.gitlab.com/releases/2025/02/12/patch-release-gitlab-17-8-2-released/#saml-authentication-misconfigures-external-user-attribute"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1540.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-1540"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.com/gitlab-org/gitlab/-/issues/512765"
    },
    {
      "type": "PACKAGE",
      "url": "git://git@gitlab.com:gitlab-org/gitlab.git"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Incorrect Authorization in GitLab"
}