PT-2023-4874 · Unknown+5 · Bouncy Castle For Java+5

Published

2023-07-01

·

Updated

2026-03-18

·

CVE-2023-33201

CVSS v3.1

5.3

Medium

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Name of the Vulnerable Software and Affected Versions Bouncy Castle For Java versions prior to 1.74
Description The issue is related to an LDAP injection vulnerability in Bouncy Castle For Java. It affects applications that use an LDAP CertStore to validate X.509 certificates. During certificate validation, Bouncy Castle inserts the certificate's Subject Name into an LDAP search filter without proper escaping, leading to the vulnerability. This can be exploited to disclose protected information, especially if an attacker generates a self-signed certificate with a subject name containing special characters. The exploitation depends on the target LDAP directory's structure and the type of errors exposed to the user.
Recommendations For versions prior to 1.74, update to version 1.74 or later to resolve the issue. As a temporary workaround, consider disabling the use of LDAP CertStore from Bouncy Castle for validating X.509 certificates until a patch is applied. Restrict access to the X509LDAPCertStoreSpi.java class to minimize the risk of exploitation. Avoid using certificate subject names that contain special characters in the affected API endpoints until the issue is resolved.

Exploit

Fix

Improper Certificate Validation

Weakness Enumeration

Related Identifiers

BDU:2023-05362
CVE-2023-33201
DLA-3514-1
GHSA-HR8G-6V94-X4M9
OESA-2023-1391
OESA-2023-1504
OPENSUSE-SU-2024:13016-1
RHSA-2023:5484
RHSA-2023:5485
RHSA-2023:5486
RHSA-2023:7482
RHSA-2023:7483
RHSA-2023:7484
SUSE-SU-2023:2843-1
SUSE-SU-2023_2843-1
USN-8108-1

Affected Products

Astra Linux
Bouncy Castle For Java
Debian
Linuxmint
Suse
Ubuntu