GHSA-hr8g-6v94-x4m9

    Dashboard / Vulnerabilities / GHSA-hr8g-6v94-x4m9

    GHSA-hr8g-6v94-x4m9

    Published: 5 Jul 2023Last Modified: 10 Sept 2026

    Summary: Bouncy Castle For Java LDAP injection vulnerability

    Details: 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.

    Affected packages

    Package

    Name: org.bouncycastle:bcprov-jdk18on

    Purl: pkg:maven/org.bouncycastle/bcprov-jdk18on

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -1.74

    Affected versions

    1.71
    1.71.1

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-hr8g-6v94-x4m9 | CVE-DB