Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1ocjhnLTZ2OTQteDRtOc4AA0NP

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.

Permalink: https://github.com/advisories/GHSA-hr8g-6v94-x4m9
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1ocjhnLTZ2OTQteDRtOc4AA0NP
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 10 months ago
Updated: 6 months ago


CVSS Score: 5.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Identifiers: GHSA-hr8g-6v94-x4m9, CVE-2023-33201
References: Repository: https://github.com/bcgit/bc-java
Blast Radius: 22.7

Affected Packages

maven:org.bouncycastle:bcprov-debug-jdk15on
Dependent packages: 17
Dependent repositories: 56
Downloads:
Affected Version Ranges: >= 1.49, <= 1.70
No known fixed version
All affected versions:
maven:org.bouncycastle:bcprov-ext-jdk15on
Dependent packages: 261
Dependent repositories: 1,160
Downloads:
Affected Version Ranges: >= 1.49, <= 1.70
No known fixed version
All affected versions:
maven:org.bouncycastle:bcprov-jdk15on
Dependent packages: 3,304
Dependent repositories: 18,945
Downloads:
Affected Version Ranges: >= 1.49, <= 1.70
No known fixed version
All affected versions: 1.65.1
maven:org.bouncycastle:bcprov-debug-jdk14
Dependent packages: 0
Dependent repositories: 1
Downloads:
Affected Version Ranges: >= 1.49, < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions:
maven:org.bouncycastle:bcprov-ext-jdk14
Dependent packages: 3
Dependent repositories: 15
Downloads:
Affected Version Ranges: >= 1.49, < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions:
maven:org.bouncycastle:bcprov-jdk14
Dependent packages: 33
Dependent repositories: 201
Downloads:
Affected Version Ranges: >= 1.49, < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions: 1.78.1
maven:org.bouncycastle:bcprov-debug-jdk18on
Dependent packages: 1
Dependent repositories: 10
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions: 1.78.1
maven:org.bouncycastle:bcprov-debug-jdk15to18
Dependent packages: 0
Dependent repositories: 5
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions: 1.78.1
maven:org.bouncycastle:bcprov-ext-jdk18on
Dependent packages: 33
Dependent repositories: 54
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions:
maven:org.bouncycastle:bcprov-ext-jdk15to18
Dependent packages: 9
Dependent repositories: 34
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions:
maven:org.bouncycastle:bcprov-jdk15to18
Dependent packages: 187
Dependent repositories: 341
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions:
All unaffected versions: 1.78.1
maven:org.bouncycastle:bcprov-jdk18on
Dependent packages: 500
Dependent repositories: 920
Downloads:
Affected Version Ranges: < 1.74
Fixed in: 1.74
All affected versions: 1.71.1
All unaffected versions: 1.78.1