CVE-2023-39020 Code injection in stanford-parser

Critical 9.8 Published Updated

Attackers can execute arbitrary code via unchecked arguments in the Stanford Parser library, requiring developers to upgrade to a patched version.

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

What is CVE-2023-39020?

CVE-2023-39020 is a critical code injection vulnerability in n/a, published on 28 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

stanford-parser v3.9.2 and below was discovered to contain a code injection vulnerability in the component edu.stanford.nlp.io.getBZip2PipedInputStream. This vulnerability is exploited via passing an unchecked argument.

Weakness: CWE-94

Which versions are affected by CVE-2023-39020?

2 open source packages ship an affected version, including edu.stanford.nlp:stanford-parser. It affects 1 product.

PackageAffectedFixed in
edu.stanford.nlp:stanford-parser MavenAll versions4.5.5
edu.stanford.nlp:stanford-parser MavenAll versions4.5.5

Products include Stanford Stanford Parser.

How do I fix CVE-2023-39020?

Upgrade edu.stanford.nlp:stanford-parser to 4.5.5 or later.

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

Is CVE-2023-39020 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-39020 exists.

Sources

Also known as GHSA-353m-jh2m-72v4.

Is CVE-2023-39020 in your software?

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

Check your SBOMs for free