CVE-2024-5899 Improper trust check in Bazel Build intellij plugin
The Bazel plugin for IntelliJ fails to display the project trust dialog during import, allowing untrusted code execution without user consent.
- 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
- None listed
What is CVE-2024-5899?
CVE-2024-5899 is a low-severity missing authorization vulnerability in BazelBuild intellij plugin, published on 18 Jun 2024. 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
When Bazel Plugin in intellij imports a project (either using "import project" or "Auto import") the dialog for trusting the project is not displayed. This comes from the fact that both call the method ProjectBuilder.createProject which then calls ProjectManager.getInstance().createProject. This method, as its name suggests is intended to create a new project, not to import an existing one. We recommend upgrading to version 2024.06.04.0.2 or beyond for the IntelliJ, CLion and Android Studio Bazel plugins.
Weakness: CWE-862
Which versions are affected by CVE-2024-5899?
1 open source package ship an affected version, including github.com/bazelbuild/intellij. It affects 3 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/bazelbuild/intellij Go | All versions | None |
Products include Google Bazel for Android Studio, Google Bazel for Clion, Google Bazel for Intellij.
How do I fix CVE-2024-5899?
No fix has been published for CVE-2024-5899 yet. Limit exposure of the affected software until one is available.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2024-5899 being exploited?
There is no known exploitation of CVE-2024-5899 in the wild and no public exploit code.
Sources
Also known as GHSA-c445-694v-cp45, GHSA-hh9f-wmhw-46vg, GO-2024-2933.