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.
https://security.netapp.com/advisory/ntap-20230824-0008/
https://lists.debian.org/debian-lts-announce/2023/08/msg00000.html
https://github.com/bcgit/bc-java/wiki/CVE-2023-33201
https://github.com/bcgit/bc-java/commit/e8c409a8389c815ea3fda5e8b94c92fdfe583bcc