CVE-2023-33201
Bouncy Castle For Java LDAP injection vulnerability
Reported by mitre · Published July 5, 2023
bcprov-jdk15to18 is fixed in 1.74 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk15to18 | Maven Central | 1.74 |
| org.bouncycastle:bcprov-debug-jdk18on | Maven Central | 1.74 |
| org.bouncycastle:bcprov-ext-jdk15to18 | Maven Central | 1.74 |
| org.bouncycastle:bcprov-jdk14 | Maven Central | 1.74 |
| org.bouncycastle:bcprov-debug-jdk15to18 | Maven Central | 1.74 |
| org.bouncycastle:bcprov-ext-jdk14 | Maven Central | 1.74 |
| org.bouncycastle:bcprov-jdk18on | Maven Central | 1.74 |
| org.bouncycastle:bcprov-ext-jdk18on | Maven Central | 1.74 |
| org.bouncycastle:bcprov-jdk15on | Maven Central | 1.70 |
| org.bouncycastle:bcprov-debug-jdk15on | Maven Central | 1.70 |
| org.bouncycastle:bcprov-ext-jdk15on | Maven Central | 1.70 |
| bouncycastle-tls | Amazon Linux | 1.70-4.amzn2023.0.3 |
11 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2023 | bouncycastle-tls | 0 |
| amazon:2023 | bouncycastle-javadoc | 0 |
| chainguard | tez | 0 |
| chainguard | gradle-8 | 0 |
| Maven | org.bouncycastle:bcprov-ext-jdk14 | 0 |
| amazon:2023 | bouncycastle-mail | 0 |
| Maven | org.bouncycastle:bcprov-jdk14 | 0 |
| Maven | org.bouncycastle:bcprov-ext-jdk18on | 0 |
| wolfi | jenkins | * |
| wolfi | tez | 0 |
| Maven | org.bouncycastle:bcprov-jdk15to18 | 0 |
| chainguard | elasticsearch-7 | 0 |
| amazon:2023 | bouncycastle | 0 |
| Maven | org.bouncycastle:bcprov-debug-jdk18on | 0 |
| chainguard | druid | 0 |
| wolfi | druid | 0 |
| chainguard | solr-9 | 0 |
| n/a | n/a | * |
| chainguard | elasticsearch-8 | 0 |
…and 12 more
Timeline
- Jun 18, 2023 CVE Published
- Jul 5, 2023 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 PoC Published
- Mar 23, 2026 Security Advisory (32 in total, the first dated here)
- Aug 9, 2026 Coalition ESS Score
- Nov 22, 2026 Distribution Patch (30 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-33201
vulnetix vdb fixes CVE-2023-33201
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-33201/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [debian-lts-announce] 20230802 [SECURITY] [DLA 3514-1] bouncycastle security update mailing-list
- https://github.com/bcgit/bc-java/commit/ccf93ca736b89250ff4ce079a5aa56f5cbf0ebbd patch
- https://github.com/bcgit/bc-java/commits/main/prov/src/main/java/org/bouncycastle/jce/provider/X509LDAPCertStoreSpi.java url
- https://nvd.nist.gov/vuln/detail/CVE-2023-33201 advisory
- https://bouncycastle.org/releasenotes.html#r1rv74 url
- https://github.com/advisories/GHSA-hr8g-6v94-x4m9 advisory