CVE-2021-39879 Missing authorization in GitLab
An attacker with session access can disable two-factor authentication due to missing authentication checks in GitLab.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-39879?
CVE-2021-39879 is a low-severity missing authorization vulnerability in Gitlab Gitlab, published on 4 Oct 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Missing authentication in all versions of GitLab CE/EE since version 7.11.0 allows an attacker with access to a victim's session to disable two-factor authentication
Weakness: CWE-306
Which versions are affected by CVE-2021-39879?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | From 7.11.0 | 14.1.7 |
Products include Gitlab Gitlab.
How do I fix CVE-2021-39879?
Upgrade gitlab to 14.1.7 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2021-39879 being exploited?
There is no known exploitation of CVE-2021-39879 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-39879, GHSA-32w9-cgpf-p2wf, UBUNTU-CVE-2021-39879.