CVE-2021-39913 Information disclosure in GitLab
An attacker with local file access can read the system root password from migration logs, leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-39913?
CVE-2021-39913 is a medium-severity vulnerability in Gitlab Gitlab, published on 4 Nov 2021. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Accidental logging of system root password in the migration log in all versions of GitLab CE/EE before 14.2.6, all versions starting from 14.3 before 14.3.4, and all versions starting from 14.4 before 14.4.1 allows an attacker with local file system access to obtain system root-level privileges
Weakness: CWE-532
Which versions are affected by CVE-2021-39913?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | All versions | 14.2.6, 14.3.4, 14.4.1 |
Products include Gitlab Gitlab.
How do I fix CVE-2021-39913?
Upgrade gitlab to a fixed version for your release line: 14.2.6, 14.3.4 or 14.4.1.
Is CVE-2021-39913 being exploited?
There is no known exploitation of CVE-2021-39913 in the wild and no public exploit code.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as BIT-gitlab-2021-39913, GHSA-hw95-w73v-wf42, UBUNTU-CVE-2021-39913.