Skip to content

CVE-2023-33201 - Information Exposure vulnerability in org.bouncycastle:bcprov-jdk15on #21664

Description

@abstractj

Description

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.

Source: Snyk Open Source
Location: pom.xml
This file introduces a vulnerable org.bouncycastle:bcprov-jdk15on package with a medium severity vulnerability.
(CVE-2023-33201) org.bouncycastle:bcprov-jdk15on@1.70

  • Package Manager: maven
  • Vulnerable module: org.bouncycastle:bcprov-jdk15on
  • Introduced through: org.keycloak:keycloak-operator@999.0.0-SNAPSHOT and org.bouncycastle:bcprov-jdk15on@1.70

Detailed paths

Overview

org.bouncycastle:bcprov-jdk15on is a Java implementation of cryptographic algorithms.

Affected versions of this package are vulnerable to Information Exposure due to missing validation for the X.500 name of any certificate, subject, or issuer. The presence of a wild card may lead to information disclosure. This could allow a malicious user to obtain unauthorized information via blind LDAP Injection, exploring the environment and enumerating data.

Note:

The exploit depends on the structure of the target LDAP directory as well as what kind of errors are exposed to the user.

Remediation

A fix was pushed into the master branch but not yet published.

References

Activity

  1. abstractj commented on Jul 12, 2023

    @abstractj
    ContributorAuthor

    @keycloak/cloud-native @keycloak/core it seems a transitive dependency coming from the Operator, but please remove any label if not accurate.

  2. vmuzikar commented on Jul 13, 2023

    @vmuzikar
    Contributor

    It's used in server as well.

  3. linked a pull request that will close this issueUpdate bcpkix and bcprov dependencies #21543on Jul 18, 2023
  4. added this to the 22.0.2 milestone on Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/cveIssues identified as CVEs on third-party dependencies, or issues which Keycloak is not affectedteam/cloud-native

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions