CVE-2020-26405
GitLab vulnerability analysis and mitigation

Overview

A path traversal vulnerability (CVE-2020-26405) was discovered in GitLab CE/EE's package upload functionality, affecting versions from 12.8 onwards. The vulnerability allows attackers to save packages in arbitrary locations on the system. The affected versions include GitLab installations >=12.8 and <13.3.9, >=13.4 and <13.4.5, and >=13.5 and <13.5.2. This security issue was identified and reported through GitLab's HackerOne bug bounty program (GitLab Release).

Technical details

The vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) with a CVSS v3.1 Base Score of 7.1 (High). The technical issue stems from insufficient path validation in the package upload functionality, where the package_filename is updated with values directly from the metadata without proper security checks. This allows for directory traversal, potentially enabling attackers to write controlled data with the .nupkg extension to any location accessible by the git user (NVD).

Impact

The vulnerability allows attackers to save packages with the .nupkg extension in arbitrary locations on the server where the git user has access. Parent directories are automatically created during this process, and while files must maintain the .nupkg extension, attackers could potentially use polyglot files to include arbitrary data. This could lead to security implications depending on the locations accessible to the git user (GitLab Issue).

Exploitability

The vulnerability can be exploited by creating a specially crafted nuspec file with path traversal sequences and uploading it via the GitLab API. The attack requires valid authentication with sufficient privileges to upload packages. The exploitation process involves manipulating the package metadata to specify arbitrary file locations on the system (GitLab Issue).

Mitigation and workarounds

GitLab has addressed this vulnerability in versions 13.3.9, 13.4.5, and 13.5.2. Organizations running affected versions are strongly recommended to upgrade to these patched versions immediately. The fix implements proper validation of package_filename values before processing them (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-16553MEDIUM5.4
  • GitLab logoGitLab
  • gitlab
NoYesJul 29, 2026
CVE-2026-6336MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-rails-ce-fips-18.7
NoYesJul 29, 2026
CVE-2026-6267MEDIUM5.3
  • GitLab logoGitLab
  • gitlab-rails-ce-18.8
NoYesJul 29, 2026
CVE-2026-3093MEDIUM4.7
  • GitLab logoGitLab
  • gitlab-workhorse-ce-18.11
NoYesJul 29, 2026
CVE-2026-4672MEDIUM4.3
  • GitLab logoGitLab
  • gitlab-workhorse-ce-18.9
NoYesJul 29, 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