CVE-2020-11986 Code injection in Apache NetBeans

Critical 9.8 Published Updated

Apache NetBeans executes Gradle build scripts without user consent upon project load, allowing attackers to run malicious code via crafted projects.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-11986?

CVE-2020-11986 is a critical code injection vulnerability in Apache NetBeans, published on 9 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

To be able to analyze gradle projects, the build scripts need to be executed. Apache NetBeans follows this pattern. This causes the code of the build script to be invoked at load time of the project. Apache NetBeans up to and including 12.0 did not request consent from the user for the analysis of the project at load time. This in turn will run potentially malicious code, from an external source, without the consent of the user.

Which versions are affected by CVE-2020-11986?

It affects 1 product.

Products include Apache Netbeans.

How do I fix CVE-2020-11986?

Upgrade to a fixed version.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-11986 being exploited?

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

Sources

Also known as DEBIAN-CVE-2020-11986, GHSA-cj3p-fc7w-fx87, UBUNTU-CVE-2020-11986.

Is CVE-2020-11986 in your software?

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

Check your SBOMs for free