This module provides remote code execution against GitLab Community Edition (CE) and Enterprise Edition (EE). It combines an arbitrary file read to extract the Rails "secret_key_base", and gains remote code execution with a deserialization vulnerability of a signed 'experimentation_subject_id' cookie that GitLab uses internally for A/B testing. Note that the arbitrary file read exists in GitLab EE/CE 8.5 and later, and was fixed in 12.9.1, 12.8.8, and 12.7.8. However, the RCE only affects versions 12.4.0 and above when the vulnerable `experimentation_subject_id` cookie was introduced. Tested on GitLab 12.8.1 and 12.4.0.
Exploit database
Vulnerability
CVE-2020-10977
Vulnerability details
- Score
- 5.5
- Severity
- medium
CVSS 3.1 · NVD
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:NDescription
GitLab EE/CE 8.5 to 12.9 is vulnerable to a an path traversal when moving an issue between projects.
CVE ProgramShowing saved CVE details. Refresh is temporarily unavailable.
Exploit source choices
9 sourcesGitLab File Read Remote Code Execution
2020-03-26gitlab_file_read_rce.rb
thewhiteh4t/cve-2020-10977
GitLab 12.9.0 Arbitrary File Read
2020-11-202 files · 69 stars
cocomelonc/vulnexipy
Vulnerabilities exploitation examples, python
2020-06-1697 files · 26 stars
kooroshrz/cve-2020-10977
Exploit for "GitLab Instance" Arbitrary server file read vulnerability
2020-05-023 files · 4 stars
liath/cve-2020-10977
Gitlab v12.4.0-8.1 RCE
2021-03-074 files · 2 stars
vandycknick/gitlab-cve-2020-10977
GitLab Arbitrary File Read Exploit
2021-05-0210 files · 2 stars
lisp3r/cve-2020-10977-read-and-execute
cve-2020-10977 read and execute
2021-04-115 files · 1 stars
avrah/gitlab-rce
avrah/gitlab-rce source repository
2022-02-227 files · 0 stars
d4n-sec/d4n-sec.github.io
Generated personal blog
2026-11-06385 files · 0 stars