CVE-2020-28052 Logic error in Legion of the Bouncy Castle BC Java

High 8.1 Published Updated

The Bouncy Castle Java library incorrectly validates passwords, allowing attackers to bypass authentication using incorrect credentials.

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

CVE-2020-28052 is a high-severity authentication bypass vulnerability in Bouncycastle Bc-Java, published on 18 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in Legion of the Bouncy Castle BC Java 1.65 and 1.66. The OpenBSDBCrypt.checkPassword utility method compared incorrect data when checking the password, allowing incorrect passwords to indicate they were matching with previously hashed ones that were different.

Which versions are affected by CVE-2020-28052?

14 open source packages ship an affected version, including org.bouncycastle:bcprov-ext-jdk15on, org.bouncycastle:bcprov-ext-jdk16 and org.bouncycastle:bcprov-jdk14. It affects 20 products.

PackageAffectedFixed in
org.bouncycastle:bcprov-ext-jdk15on MavenFrom 1.651.67
org.bouncycastle:bcprov-ext-jdk15on MavenFrom 1.651.67
org.bouncycastle:bcprov-ext-jdk16 MavenFrom 1.651.67
org.bouncycastle:bcprov-ext-jdk16 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk14 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk14 MavenFrom 1.651.67
8 more packages
org.bouncycastle:bcprov-jdk15 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk15 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk15on MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk15on MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk15to18 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk15to18 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk16 MavenFrom 1.651.67
org.bouncycastle:bcprov-jdk16 MavenFrom 1.651.67

Products include Apache Karaf, Bouncycastle Bc-Java, Oracle Banking Corporate Lending Process Management, Oracle Banking Credit Facilities Process Management, Oracle Banking Extensibility Workbench, Oracle Banking Supply Chain Finance and 14 more.

How do I fix CVE-2020-28052?

Upgrade org.bouncycastle:bcprov-ext-jdk15on to 1.67 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2020-28052 being exploited?

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

Public exploit code: 2 proofs of concept on GitHub.

All Bouncycastle Bc-Java vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-28052, GHSA-73xv-w5gp-frxh.

Is CVE-2020-28052 in your software?

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

Check your SBOMs for free