Bouncy Castle For Java LDAP injection vulnerability
Bouncy Castle provides the X509LDAPCertStoreSpi.java class which can be used in conjunction with the CertPath API for validating certificate paths. Pre-1.73 the implementation did not check the X.500 name of any certificate, subject, or issuer being passed in for LDAP wild cards, meaning the presence of a wild car may lead to Information Disclosure.
A potential attack would be to generate a self-signed certificate with a subject name that contains special characters, e.g: CN=Subject*)(objectclass=. This will be included into the filter and provides the attacker ability to specify additional attributes in the search query. This can be exploited as a blind LDAP injection: an attacker can enumerate valid attribute values using the boolean blind injection technique. The exploitation depends on the structure of the target LDAP directory, as well as what kind of errors are exposed to the user.
Changes to the X509LDAPCertStoreSpi.java class add the additional checking of any X.500 name used to correctly escape wild card characters.
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity none, availability none.
The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVE-2023-33201 is classified as CWE-295: Improper Certificate Validation. A TLS certificate is accepted without proper verification, so a man-in-the-middle can present their own.
CVE-2023-33201 is recorded against 13 packages.
Published on 5 July 2023 and last revised on 17 June 2026. No public exploit is currently recorded for this entry. A vendor advisory or fix has been published. Record sourced from NVD.
bouncycastle.org
github.com
github.com
lists.debian.org
security.netapp.com
bouncycastle.org
github.com
github.com
lists.debian.org
security.netapp.com
These advisories are the same class of weakness (CWE-295: Improper Certificate Validation) in other software:
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| bc-java | — | 1.74 |
| org.bouncycastle:bcprov-debug-jdk14 | 1.49 | 1.74 |
| org.bouncycastle:bcprov-debug-jdk15on | 1.49 | — |
| org.bouncycastle:bcprov-debug-jdk15to18 | — | 1.74 |
| org.bouncycastle:bcprov-debug-jdk18on | — | 1.74 |
| org.bouncycastle:bcprov-ext-jdk14 | 1.49 | 1.74 |
| org.bouncycastle:bcprov-ext-jdk15on | 1.49 | — |
| org.bouncycastle:bcprov-ext-jdk15to18 | — | 1.74 |
| org.bouncycastle:bcprov-ext-jdk18on | — | 1.74 |
| org.bouncycastle:bcprov-jdk14 | 1.49 | 1.74 |
| org.bouncycastle:bcprov-jdk15on | 1.49 | — |
| org.bouncycastle:bcprov-jdk15to18 | — | 1.74 |
| org.bouncycastle:bcprov-jdk18on | — | 1.74 |
References
Vulnerability Monitoring
CVE-2023-33201 is rated CVSS 5.3 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.