Logic error in Legion of the Bouncy Castle BC Java
Published 30 Apr 2021 · Updated 8 Mar 2024
Is your project on an affected org.bouncycastle:bcprov-jdk15to18?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15to18 -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15 -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk15on -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-ext-jdk15on -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk14 -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-jdk16 -DdepVersion=1.67 -DforceVersion=true- Affected
- >=1.65 <1.67
- Fixed in
- 1.67
mvn versions:use-dep-version -Dincludes=org.bouncycastle:bcprov-ext-jdk16 -DdepVersion=1.67 -DforceVersion=trueDetails
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.
Is GHSA-73xv-w5gp-frxh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.bouncycastle:bcprov-jdk15to18, and gives you the command that fixes it.
More advisories for org.bouncycastle:bcprov-jdk15to18
- HighCVE-2026-13506Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard · 3 Aug 2026
- CriticalCVE-2026-8763Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI · 3 Aug 2026
- CriticalCVE-2025-14813Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks · 17 Apr 2026
- HighCVE-2026-5598Bouncy Castle Has Covert Timing Channel Vulnerability · 17 Apr 2026
- MediumCVE-2026-0636Bouncy Castle has an LDAP injection · 17 Apr 2026
- MediumCVE-2025-8885Bouncy Castle for Java on All (API modules) allows Excessive Allocation · 12 Aug 2025
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2020-28052
- Linkgithub.com/bcgit/bc-java/commit/97578f9b7ed277e6ecb58834e85e3d18385a4219
- Linkwww.synopsys.com/blogs/software-security/cve-2020-28052-bouncy-castle
- Linkwww.oracle.com/security-alerts/cpuoct2021.html
- Linkwww.oracle.com/security-alerts/cpujul2022.html
- Linkwww.oracle.com/security-alerts/cpujan2022.html
- Linkwww.oracle.com/security-alerts/cpuapr2022.html
- Linkwww.oracle.com/security-alerts/cpuApr2021.html
- Linkwww.oracle.com//security-alerts/cpujul2021.html
- Linkwww.bouncycastle.org/releasenotes.html
- Linklists.apache.org/thread.html/rfc0db1f3c375087e69a239f9284ded72d04fbb55849eadde58fa9dc2@%3Cissues.karaf.apache.org%3E
- Linklists.apache.org/thread.html/rf9abfc0223747a56694825c050cc6b66627a293a32ea926b3de22402@%3Cissues.karaf.apache.org%3E
- Linklists.apache.org/thread.html/rdfd2901b8b697a3f6e2c9c6ecc688fd90d7f881937affb5144d61d6e@%3Ccommits.druid.apache.org%3E
- Linklists.apache.org/thread.html/rddd2237b8636a48d573869006ee809262525efb2b6ffa6eff50d2a2d@%3Cjira.kafka.apache.org%3E
- Linklists.apache.org/thread.html/rdcbad6d8ce72c79827ed8c635f9a62dd919bb21c94a0b64cab2efc31@%3Cissues.karaf.apache.org%3E
- Linklists.apache.org/thread.html/rcd37d9214b08067a2e8f2b5b4fd123a1f8cb6008698d11ef44028c21@%3Cissues.karaf.apache.org%3E
- Linklists.apache.org/thread.html/rc9e441c1576bdc4375d32526d5cf457226928e9c87b9f54ded26271c@%3Cissues.karaf.apache.org%3E
- Linklists.apache.org/thread.html/r954d80fd18e9dafef6e813963eb7e08c228151c2b6268ecd63b35d1f@%3Ccommits.druid.apache.org%3E
- Linklists.apache.org/thread.html/r8c36ba34e80e05eecb1f80071cc834d705616f315b634ec0c7d8f42e@%3Cissues.solr.apache.org%3E
- Linklists.apache.org/thread.html/r77af3ac7c3bfbd5454546e13faf7aec21d627bdcf36c9ca240436b94@%3Cissues.karaf.apache.org%3E
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.