Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-22252

A confusion between tag and branch names in GitLab CE/EE affecting all versions since 13.7 allowed a Developer to access protected CI variables which should only be accessible to Maintainers

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-22252
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 04:37 UTC · Revision 1

Source evidence

CVE-2021-22252

core-osv · Original source

Published 23 Aug 2021, 20:15 UTC

A confusion between tag and branch names in GitLab CE/EE affecting all versions since 13.7 allowed a Developer to access protected CI variables which should only be accessible to Maintainers

osv:CVE-2021-22252
Complete source record
{
  "id": "7ffa507b8df3765cbea005357f44bcd5a99caa7220c472ca81afe29f3dbfaedc",
  "url": "https://osv.dev/vulnerability/CVE-2021-22252",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-22252",
    "summary": "A confusion between tag and branch names in GitLab CE/EE affecting all versions since 13.7 allowed a Developer to access protected CI variables which should only be accessible to Maintainers",
    "evidence": "osv:CVE-2021-22252",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2021-22252",
      "aliases": [
        "BIT-gitlab-2021-22252",
        "CVE-2021-22252"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/gitlab-org/gitlab",
              "type": "GIT",
              "events": [
                {
                  "introduced": "036576a25d67513637c1e2cba5859af47695188e"
                },
                {
                  "fixed": "cdec15d2a57e0e91df125713022bf18a9878edae"
                },
                {
                  "introduced": "0034acfc891b0cbc2ecc4aa4c5ca0d1f89e3c32f"
                },
                {
                  "fixed": "2124823be81f07274ec34739351f84565c7064bb"
                },
                {
                  "introduced": "e4567ef4362f4ef24a09112564b31dfe9044ea12"
                },
                {
                  "fixed": "0bf9b154ab444113db7b13c8d6c6ae856d7893e6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "13.7.0"
                      },
                      {
                        "fixed": "13.12.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "13.7.0"
                      },
                      {
                        "fixed": "13.12.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "14.0.0"
                      },
                      {
                        "fixed": "14.0.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "14.0.0"
                      },
                      {
                        "fixed": "14.0.7"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*",
                    "range": [
                      {
                        "introduced": "14.1.0"
                      },
                      {
                        "fixed": "14.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*",
                    "range": [
                      {
                        "introduced": "14.1.0"
                      },
                      {
                        "fixed": "14.1.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v14.0.5-ee",
            "v14.1.1-ee",
            "v14.1.0-ee",
            "v14.0.6-ee",
            "v14.0.3-ee",
            "v14.0.1-ee",
            "v14.0.0-ee"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-22252.json"
          }
        }
      ],
      "modified": "2026-10-30T10:31:07.071292494Z",
      "provider": "osv",
      "references": [
        "https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22252.json",
        "https://hackerone.com/reports/1186135",
        "https://gitlab.com/gitlab-org/gitlab/-/issues/330364"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-22252",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 430381,
  "published_at": "2021-08-23T20:15:13.037+00:00"
}