CVE-2023-33201 Bouncy Castle For Java LDAP injection vulnerability
An LDAP injection in Bouncy Castle allows bypassing X.509 certificate validation when using LDAP CertStore, requiring specific configuration.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-33201?
CVE-2023-33201 is a medium-severity vulnerability in Bouncycastle Bc-Java, published on 5 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-295
Which versions are affected by CVE-2023-33201?
24 open source packages ship an affected version, including org.bouncycastle:bcprov-debug-jdk14, org.bouncycastle:bcprov-debug-jdk15on and org.bouncycastle:bcprov-debug-jdk15to18. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.bouncycastle:bcprov-debug-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-debug-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-debug-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-debug-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-debug-jdk15to18 Maven | All versions | 1.74 |
org.bouncycastle:bcprov-debug-jdk15to18 Maven | All versions | 1.74 |
18 more packages
org.bouncycastle:bcprov-debug-jdk18on Maven | All versions | 1.74 |
org.bouncycastle:bcprov-debug-jdk18on Maven | All versions | 1.74 |
org.bouncycastle:bcprov-ext-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-ext-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-ext-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-ext-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-ext-jdk15to18 Maven | All versions | 1.74 |
org.bouncycastle:bcprov-ext-jdk15to18 Maven | All versions | 1.74 |
org.bouncycastle:bcprov-ext-jdk18on Maven | All versions | 1.74 |
org.bouncycastle:bcprov-ext-jdk18on Maven | All versions | 1.74 |
org.bouncycastle:bcprov-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-jdk14 Maven | From 1.49 | 1.74 |
org.bouncycastle:bcprov-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-jdk15on Maven | From 1.49 to 1.70 | None |
org.bouncycastle:bcprov-jdk15to18 Maven | All versions | 1.74 |
org.bouncycastle:bcprov-jdk15to18 Maven | All versions | 1.74 |
org.bouncycastle:bcprov-jdk18on Maven | All versions | 1.74 |
org.bouncycastle:bcprov-jdk18on Maven | All versions | 1.74 |
Linux distribution packages (15)
bouncycastle SUSE:Enterprise Storage 7 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Enterprise Storage 7.1 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP5 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 1.74-150200.3.21.1 |
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 1.74-150200.3.21.1 |
bouncycastle openSUSE:Leap 15.4 | All versions | 1.74-150200.3.21.1 |
bouncycastle openSUSE:Leap 15.5 | All versions | 1.74-150200.3.21.1 |
bouncycastle openSUSE:Tumbleweed | All versions | 1.74-1.1 |
Products include Bouncycastle Bc-Java.
How do I fix CVE-2023-33201?
Upgrade org.bouncycastle:bcprov-debug-jdk14 to 1.74 or later.
Is CVE-2023-33201 being exploited?
There is no known exploitation of CVE-2023-33201 in the wild and no public exploit code.
Other vulnerabilities in Bouncycastle Bc-Java
- CVE-2007-6721 Legion of the Bouncy Castle Java Cryptography API Bleichenbacher Oracle Vulnerability
- CVE-2018-1000613 Deserialization of Untrusted Data in Bouncy castle
- CVE-2026-58062 Stapled OCSP response accepted without binding to the checked certificate
- CVE-2026-59638 JSSE hostname verifier CN-fallback enabled by default despite documented opt-in
- CVE-2026-59650 MTI/A0 DH agreement exponentiates unvalidated peer value
Sources
Also known as DEBIAN-CVE-2023-33201, DLA-3514-1, GHSA-hr8g-6v94-x4m9, MINI-crmc-xrmq-7qhr, MINI-j62v-hqfg-wm8p, MINI-xqpf-6w6p-qc99 and 5 more.