CVE-2024-8402 Improper Neutralization of Special Elements used in a Command ('Command Injection') in GitLab

Low 3.7 Published Updated

A Maintainer can execute arbitrary code via command injection in the Google Cloud IAM integration feature of GitLab EE.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-8402?

CVE-2024-8402 is a low-severity command injection vulnerability in Gitlab Gitlab, published on 13 Mar 2025. 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

An issue was discovered in GitLab EE affecting all versions starting from 17.2 before 17.7.7, all versions starting from 17.8 before 17.8.5, all versions starting from 17.9 before 17.9.2. An input validation issue in the Google Cloud IAM integration feature could have enabled a Maintainer to introduce malicious code.

Weakness: CWE-77

Which versions are affected by CVE-2024-8402?

1 open source package ship an affected version, including gitlab. It affects 1 product.

PackageAffectedFixed in
gitlab BitnamiFrom 17.2.017.9.2

Products include Gitlab Gitlab.

How do I fix CVE-2024-8402?

Upgrade gitlab to 17.9.2 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2024-8402 being exploited?

There is no known exploitation of CVE-2024-8402 in the wild and no public exploit code.

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2024-8402, GHSA-xq5v-g7v7-8q74.

Is CVE-2024-8402 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free