CVE-2023-33201
Bouncy Castle For Java LDAP injection vulnerability
Description
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.
How to fix CVE-2023-33201
To remediate CVE-2023-33201, upgrade the affected package to a fixed version below.
- —upgrade to 1.60-1+deb10u1 or later
- —no fix listed
- —upgrade to 1.74 or later
- —no fix listed
- —upgrade to 1.74 or later
- —upgrade to 1.74 or later
- —upgrade to 1.74 or later
- —no fix listed
- —upgrade to 1.74 or later
- —upgrade to 1.74 or later
- —upgrade to 1.74 or later
- —no fix listed
- —upgrade to 1.74 or later
- —upgrade to 1.74 or later
Is CVE-2023-33201 being exploited?
Low — EPSS is 0.3%, meaning exploitation activity has not been observed at scale.
Affected packages (14)
- from 0, < 1.60-1+deb10u1
- from 0
- >= 1.49, < 1.74
- >= 1.49, <= 1.70
- from 0, < 1.74
- from 0, < 1.74
- >= 1.49, < 1.74
- >= 1.49, <= 1.70
- from 0, < 1.74
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |