CVE-2023-33201

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-33201
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-33201.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-33201
Aliases
Downstream
Related
Published
2023-07-05T03:15:09Z
Modified
2025-09-19T14:31:30.536201Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/bcgit/bc-java

Affected ranges

Type
GIT
Repo
https://github.com/bcgit/bc-java
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

r1rv73

Database specific

{
    "vanir_signatures": [
        {
            "deprecated": false,
            "target": {
                "file": "prov/src/main/java/org/bouncycastle/jce/provider/X509LDAPCertStoreSpi.java"
            },
            "source": "https://github.com/bcgit/bc-java/commit/e8c409a8389c815ea3fda5e8b94c92fdfe583bcc",
            "digest": {
                "line_hashes": [
                    "97888166479905061653765951730733194959",
                    "136471062335932147515899127931910480641",
                    "170196944170214573925937022006377393360",
                    "326470184619237674962484884609897536529",
                    "188011981119110521762784837866328696106",
                    "148063091611172723334370720328473588161",
                    "322629497897768613677448967555407018512",
                    "60982982912544727829451810903850160773"
                ],
                "threshold": 0.9
            },
            "id": "CVE-2023-33201-048465a5",
            "signature_version": "v1",
            "signature_type": "Line"
        },
        {
            "deprecated": false,
            "target": {
                "function": "search",
                "file": "prov/src/main/java/org/bouncycastle/jce/provider/X509LDAPCertStoreSpi.java"
            },
            "source": "https://github.com/bcgit/bc-java/commit/e8c409a8389c815ea3fda5e8b94c92fdfe583bcc",
            "digest": {
                "function_hash": "225537851837540719792995160612777457721",
                "length": 1110.0
            },
            "id": "CVE-2023-33201-96673b8b",
            "signature_version": "v1",
            "signature_type": "Function"
        }
    ]
}