CVE-2020-10199 Sonatype Nexus Repository Remote Code Execution

Exploited in the wild High 8.8 Published Updated

Attackers can execute arbitrary code via Java Expression Language injection in Sonatype Nexus Repository.

Exploited in the wild
Since 3 Nov 2021
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-10199?

CVE-2020-10199 is a high-severity code injection vulnerability in n/a, published on 1 Apr 2020. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Sonatype Nexus Repository before 3.21.2 allows JavaEL Injection (issue 1 of 2).

Weakness: CWE-917

Which versions are affected by CVE-2020-10199?

2 open source packages ship an affected version, including org.sonatype.nexus:nexus-extdirect. It affects 1 product.

PackageAffectedFixed in
org.sonatype.nexus:nexus-extdirect MavenAll versions3.21.2
org.sonatype.nexus:nexus-extdirect MavenAll versions3.21.2

Products include Sonatype Nexus.

How do I fix CVE-2020-10199?

Upgrade org.sonatype.nexus:nexus-extdirect to 3.21.2 or later. US federal agencies must fix it by 3 May 2022.

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

Is CVE-2020-10199 being exploited?

Yes. Attackers have exploited CVE-2020-10199 in the wild since at least 3 Nov 2021.

Public exploit code: 1 Metasploit module, 2 Exploit-DB entries, 1 Nuclei template and 7 proofs of concept on GitHub.

Sources

Also known as GHSA-g2f6-v5qh-h2mq.

Is CVE-2020-10199 in your software?

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

Check your SBOMs for free