Skip to content
OpenAdvisories

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 bouncycastle 1.65-2 —
Debian 13 bouncycastle 1.65-2 —
Debian 12 bouncycastle 1.65-2 —
ReleasePackageFixed inAdvisory
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-apache-cxf +3 3.1.16-3.SP1_redhat_00001.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-avro 1.7.6-2.redhat_00003.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-bouncycastle +3 1.68.0-1.redhat_00005.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-h2database 1.4.197-2.redhat_00005.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jackson-databind 2.8.11.6-1.SP1_redhat_00001.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-marshalling +1 2.0.15-1.Final_redhat_00001.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-xnio-base 3.5.10-1.Final_redhat_00001.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.8-2.GA_redhat_00002.1.ep7.el7 RHSA-2024:10208
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xalan-j2 2.7.1-26.redhat_00015.1.ep7.el7 RHSA-2024:10208
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 2.9.0-9.redhat_00019.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-bouncycastle +3 1.68.0-1.redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-guava +1 30.1.0-1.redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-guava-failureaccess 1.0.1-1.redhat_00002.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-hal-console 3.2.13-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.4.27-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-jboss-ejb-client 4.0.39-1.SP1_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-jboss-logmanager 2.1.18-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-jboss-remoting 5.0.20-2.SP1_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-jboss-server-migration +21 1.7.2-5.Final_redhat_00006.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-narayana +10 5.9.11-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-undertow 2.0.34-1.SP1_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-wildfly +2 7.3.6-1.GA_redhat_00002.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-wildfly-elytron +1 1.10.11-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-wildfly-http-client +4 1.0.25-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk8 +1 7.3.6-1.GA_redhat_00002.1.el7eap RHSA-2021:0873
Red Hat JBoss EAP 7 eap7-wildfly-naming-client 1.0.14-1.Final_redhat_00001.1.el6eap RHSA-2021:0874, RHSA-2021:0873, RHSA-2021:0872
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed bouncycastle 1.68-3.2 openSUSE-SU-2024:10661-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.bouncycastle:bcprov-ext-jdk15on >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-ext-jdk16 >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-jdk14 >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-jdk15 >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-jdk15on >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-jdk15to18 >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh
Maven org.bouncycastle:bcprov-jdk16 >= 1.65, < 1.67 1.67 GHSA-73xv-w5gp-frxh

Advisories 6

References