CVE-2020-13293
GitLab vulnerability analysis and mitigation

Overview

In GitLab before versions 13.0.12, 13.1.6, and 13.2.3, a vulnerability was discovered where using a branch with a hexadecimal name could override an existing hash. This vulnerability was assigned CVE-2020-13293 and was disclosed on August 5, 2020 (GitLab Release, NVD).

Technical details

The vulnerability allows an attacker to create a branch with the same name as a git hash, causing git to prefer the branch name over the hash when checking out code. This could lead to unexpected behavior when specific commit hashes are referenced in programs or scripts. The vulnerability has been assigned a CVSS v3.1 base score of 7.1 (HIGH) and a CVSS v2.0 base score of 5.5 (MEDIUM) (NVD).

Impact

When exploited, this vulnerability could allow an attacker to redirect pinned references of libraries to malicious code. If someone references a specific commit hash in their program, the attacker could create a branch with that hash name containing different, potentially malicious code. This could lead to the introduction of backdoors, data theft, or other malicious activities in dependent applications (GitLab Issue).

Exploitability

The vulnerability can be exploited by creating a branch with a name matching a 40-character hexadecimal git hash. When users or systems attempt to checkout the specific commit hash, git will instead checkout the branch with the matching name, potentially executing unintended code (GitLab Issue).

Mitigation and workarounds

The vulnerability has been fixed in GitLab versions 13.0.12, 13.1.6, and 13.2.3. Users are strongly recommended to upgrade to these versions or later to prevent potential exploitation (GitLab Release).

Community reactions

The vulnerability was responsibly reported by security researcher @retroplasma through the GitLab bug bounty program (GitLab Release).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-75871CRITICAL9.6
  • GitLab logoGitLab
  • gitlab
NoYesAug 27, 2026
CVE-2026-18252HIGH8.1
  • GitLab logoGitLab
  • gitlab
NoYesAug 26, 2026
CVE-2026-77801MEDIUM6.5
  • GitLab logoGitLab
  • gitlab-workhorse-ce-fips-18.10
NoYesAug 26, 2026
CVE-2026-3035MEDIUM5.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 26, 2026
CVE-2026-7487LOW3.5
  • GitLab logoGitLab
  • gitlab
NoYesAug 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management