Skip to main content

Improper Certificate Validation in org.bouncycastle:bcprov-debug-jdk14

CVE-2023-33201

  • org.bouncycastle:bcprov-debug-jdk14
  • org.bouncycastle:bcprov-debug-jdk15on
  • org.bouncycastle:bcprov-debug-jdk18on
  • org.bouncycastle:bcprov-debug-jdk15to18
  • org.bouncycastle:bcprov-ext-debug-jdk14
  • org.bouncycastle:bcprov-ext-debug-jdk15on
  • org.bouncycastle:bcprov-ext-debug-jdk18on
  • org.bouncycastle:bcprov-ext-debug-jdk15to18
  • org.bouncycastle:bcprov-ext-jdk14
  • org.bouncycastle:bcprov-ext-jdk15on
  • org.bouncycastle:bcprov-ext-jdk18on
  • org.bouncycastle.bcprov-ext-jdk15on.1.57.org.bouncycastle:bcprov-ext-jdk15on
  • org.bouncycastle:bcprov-ext-jdk15to18
  • org.bouncycastle:bcprov-jdk14
  • org.bouncycastle:bcprov-jdk15+
  • org.bouncycastle:bcprov-jdk15
  • org.bouncycastle:bcprov-jdk16
  • org.bouncycastle:bcprov-jdk15on
  • org.bouncycastle:bcprov-jdk18on
  • org.bouncycastle.bcprov-jdk15on.1.57.org.bouncycastle:bcprov-jdk15on
  • org.bouncycastle:bcprov-jdk15to18
Severity Medium
Score 5.3/10

Summary

Bouncy Castle for Java versions prior to 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.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • LOW
  • NONE

CWE-295 - Improper Certificate Validation

The authenticity component of a web system stems from the ability to validate “Digital certificates”, which (i) establish trust between two or more entities sharing data over a network; (ii) ensure data at rest and transit is secure from unauthorized access; and (iii) check the identity of the actors that interact with the system. An application with absent or ineffective certificate validation mechanisms allows malicious users, impersonating trusted hosts, to manipulate the communication path between the client and the host, resulting in unauthorized access to data and to the application’s internal environment, and potentially enabling man-in-the-middle attacks.

Advisory Timeline

  • Published