CVE-2023-33201 Bouncy Castle For Java LDAP injection vulnerability

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
org.bouncycastle:bcprov-debug-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-debug-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-debug-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-debug-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-debug-jdk15to18 MavenAll versions1.74
org.bouncycastle:bcprov-debug-jdk15to18 MavenAll versions1.74
18 more packages
org.bouncycastle:bcprov-debug-jdk18on MavenAll versions1.74
org.bouncycastle:bcprov-debug-jdk18on MavenAll versions1.74
org.bouncycastle:bcprov-ext-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-ext-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-ext-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-ext-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-ext-jdk15to18 MavenAll versions1.74
org.bouncycastle:bcprov-ext-jdk15to18 MavenAll versions1.74
org.bouncycastle:bcprov-ext-jdk18on MavenAll versions1.74
org.bouncycastle:bcprov-ext-jdk18on MavenAll versions1.74
org.bouncycastle:bcprov-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-jdk14 MavenFrom 1.491.74
org.bouncycastle:bcprov-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-jdk15on MavenFrom 1.49 to 1.70None
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.74
org.bouncycastle:bcprov-jdk15to18 MavenAll versions1.74
org.bouncycastle:bcprov-jdk18on MavenAll versions1.74
org.bouncycastle:bcprov-jdk18on MavenAll versions1.74
Linux distribution packages (15)
bouncycastle SUSE:Enterprise Storage 7All versions1.74-150200.3.21.1
bouncycastle SUSE:Enterprise Storage 7.1All versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSSAll versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP4All versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Module for Development Tools 15 SP5All versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Real Time 15 SP3All versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Server 15 SP2-LTSSAll versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP2All versions1.74-150200.3.21.1
bouncycastle SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions1.74-150200.3.21.1
bouncycastle openSUSE:Leap 15.4All versions1.74-150200.3.21.1
bouncycastle openSUSE:Leap 15.5All versions1.74-150200.3.21.1
bouncycastle openSUSE:TumbleweedAll versions1.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.

All Bouncycastle Bc-Java vulnerabilities

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.

Is CVE-2023-33201 in your software?

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

Check your SBOMs for free