LDAP injection in Bouncy Castle for Java

Published: 2023-07-17
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-33201
Exploitation vector Network
Public exploit N/A
Vulnerable software
The Bouncy Castle Crypto Package For Java
Universal components / Libraries / Libraries used by multiple products

Vendor Legion of the Bouncy Castle Inc.

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) LDAP injection

EUVDB-ID: #VU78328

Risk: Medium


CVE-ID: CVE-2023-33201


Exploit availability:


The vulnerability allows a remote attacker to bypass authentication process.

The vulnerability exists due to improper input validation in 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. A remote non-authenticated attacker can use a specially crafted X.509 certificate to bypass authentication process and gain unauthorized access to the application.


Install updates from vendor's website.

Vulnerable software versions

The Bouncy Castle Crypto Package For Java: 1.0 - 1.73

Fixed software versions

CPE2.3 External links


Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?