Live threats

All CVEs / Bouncycastle

CVE-2023-33201Bouncycastle Bc-java

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.7%
probability of exploitation in 30 days · percentile 51
Auth required
No
Published
Jul 5, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-295
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

Bouncy Castle For Java before 1.74 is affected by an LDAP injection vulnerability. The vulnerability only affects applications that use an LDAP CertStore from Bouncy Castle to validate X.509 certificates. During the certificate validation process, Bouncy Castle inserts the certificate's Subject Name into an LDAP search filter without any escaping, which leads to an LDAP injection vulnerability.

Original NVD text.

What to do

  1. Apply the vendor's security update for Bc-java.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.bouncycastle:bcprov-debug-jdk14 ≥ 1.49 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-debug-jdk15on ≥ 1.49 ≤ 1.70 no fixed version —
Maven org.bouncycastle:bcprov-debug-jdk15to18 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-debug-jdk18on < 1.74 1.74 —
Maven org.bouncycastle:bcprov-ext-jdk14 ≥ 1.49 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-ext-jdk15on ≥ 1.49 ≤ 1.70 no fixed version —
Maven org.bouncycastle:bcprov-ext-jdk15to18 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-ext-jdk18on < 1.74 1.74 —
Maven org.bouncycastle:bcprov-jdk14 ≥ 1.49 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-jdk15on ≥ 1.49 ≤ 1.70 no fixed version —
Maven org.bouncycastle:bcprov-jdk15to18 < 1.74 1.74 —
Maven org.bouncycastle:bcprov-jdk18on < 1.74 1.74 —

Per OSV / GitHub Advisories (GHSA-hr8g-6v94-x4m9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
bouncycastlebc-java< 1.74

Official sources

References

Links published by the sources. Open them with care.