CVE-2020-1929 Improper Certificate Validation in Apache Beam

High 7.5 Published Updated

The Apache Beam MongoDB connector incorrectly disables SSL certificate verification globally, allowing man-in-the-middle attacks against any JVM application using the library.

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-1929?

CVE-2020-1929 is a high-severity vulnerability in Apache Beam, published on 15 Jan 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Apache Beam MongoDB connector in versions 2.10.0 to 2.16.0 has an option to disable SSL trust verification. However this configuration is not respected and the certificate verification disables trust verification in every case. This exclusion also gets registered globally which disables trust checking for any code running in the same JVM.

Weakness: CWE-295

Which versions are affected by CVE-2020-1929?

2 open source packages ship an affected version, including org.apache.beam:beam-sdks-java-io-mongodb. It affects 1 product.

PackageAffectedFixed in
org.apache.beam:beam-sdks-java-io-mongodb MavenFrom 2.10.02.17.0
org.apache.beam:beam-sdks-java-io-mongodb MavenFrom 2.10.02.17.0

Products include Apache Beam.

How do I fix CVE-2020-1929?

Upgrade org.apache.beam:beam-sdks-java-io-mongodb to 2.17.0 or later.

Is CVE-2020-1929 being exploited?

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

Sources

Also known as GHSA-2m7g-9q74-9m3q.

Is CVE-2020-1929 in your software?

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

Check your SBOMs for free