CVE-2026-0636

LDAP Injection Vulnerability in LDAPStoreHelper.java

Published Apr 15, 2026 CVSS 4.0 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules).

This vulnerability is associated with program files LDAPStoreHelper.



This issue affects BC-JAVA: from 1.74 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.

Analysis

AI-generated

Technical impact

Improper neutralization of special elements in LDAP queries, known as LDAP injection, is present in Legion of the Bouncy Castle Inc. BC-JAVA bcprov library across all prov modules. The flaw in LDAPStoreHelper.java allows an attacker to embed arbitrary LDAP filter syntax through unsanitized input, potentially enabling unauthorized reading or modification of directory entries and undermining authentication mechanisms. This weakness is identified as CWE‑90.

Affected Systems

Legion of the Bouncy Castle Inc. provides the BC-JAVA bcprov component in its prov modules. Versions from 1.74 up to, but not including, 1.80.2; from 1.81 up to, but not including, 1.81.1; and from 1.82 up to, but not including, 1.84 are affected. The issue applies to all bcprov modules that use LDAPStoreHelper.java.

Risk and Exploitability

The vulnerability carries a CVSS score of 5.5, indicating moderate impact. The EPSS score of < 1% indicates a very low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is remote, inferred from the fact that the flaw involves unsanitized input that can be supplied by an external source to the LDAP query construction within any application that incorporates the affected Bouncy Castle library. This makes it a moderate-risk, attack‑vector‑indirect risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to BC-JAVA version 1.84 or newer, which contains the patch for LDAP injection in LDAPStoreHelper.java.
  • If an upgrade is not immediately possible, ensure that all user‑controlled data passed to LDAPStoreHelper is properly escaped or sanitised using Bouncy Castle’s provided escaping utilities before inclusion in the LDAP filter.
  • Perform a code review of all LDAP query construction points in the application to confirm that no unsanitised user input can reach the LDAPStoreHelper class.

Generated by OpenCVE AI on May 19, 2026 at 01:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-c3fc-8qff-9hwx Bouncy Castle has an LDAP injection
References
Link Providers
https://access.redhat.com/errata/RHSA-2026:11720 cve-icon
https://access.redhat.com/errata/RHSA-2026:11721 cve-icon
https://access.redhat.com/errata/RHSA-2026:13631 cve-icon
https://access.redhat.com/errata/RHSA-2026:14272 cve-icon
https://access.redhat.com/errata/RHSA-2026:14276 cve-icon
https://access.redhat.com/errata/RHSA-2026:17668 cve-icon
https://access.redhat.com/errata/RHSA-2026:18054 cve-icon
https://access.redhat.com/errata/RHSA-2026:18055 cve-icon
https://access.redhat.com/errata/RHSA-2026:18059 cve-icon
https://access.redhat.com/errata/RHSA-2026:21772 cve-icon
https://access.redhat.com/errata/RHSA-2026:53644 cve-icon
https://access.redhat.com/errata/RHSA-2026:53645 cve-icon
https://access.redhat.com/errata/RHSA-2026:53646 cve-icon
https://access.redhat.com/errata/RHSA-2026:60239 cve-icon
https://access.redhat.com/errata/RHSA-2026:60246 cve-icon
https://access.redhat.com/errata/RHSA-2026:60247 cve-icon
https://access.redhat.com/errata/RHSA-2026:60248 cve-icon
https://access.redhat.com/errata/RHSA-2026:60249 cve-icon
https://access.redhat.com/errata/RHSA-2026:60250 cve-icon
https://access.redhat.com/errata/RHSA-2026:60251 cve-icon
https://access.redhat.com/errata/RHSA-2026:60252 cve-icon
https://access.redhat.com/errata/RHSA-2026:60254 cve-icon
https://access.redhat.com/errata/RHSA-2026:60256 cve-icon
https://access.redhat.com/errata/RHSA-2026:60259 cve-icon
https://access.redhat.com/errata/RHSA-2026:66488 cve-icon
https://access.redhat.com/security/cve/CVE-2026-0636 cve-icon
https://bugzilla.redhat.com/show_bug.cgi?id=2458641 cve-icon
https://github.com/bcgit/bc-java/commit/d20cdb8430e09224114fec0179a71859929fcbde cve-icon cve-icon cve-icon
https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%900636 cve-icon cve-icon cve-icon
https://nvd.nist.gov/vuln/detail/CVE-2026-0636 cve-icon
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-0636.json cve-icon
https://www.cve.org/CVERecord?id=CVE-2026-0636 cve-icon
History
Type Values Removed Values Added
Description Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules). This vulnerability is associated with program files LDAPStoreHelper. This issue affects BC-JAVA: from 1.74 before 1.84. Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules). This vulnerability is associated with program files LDAPStoreHelper. This issue affects BC-JAVA: from 1.74 before 1.80.2, from 1.81 before 1.81.1, from 1.82 before 1.84.
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Important

Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Vendors & Products Bouncycastle
Bouncycastle bc-java
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules). LDAP Injection Vulnerability in LDAPStoreHelper.java This issue affects BC-JAVA: from 1.49 before 1.84. Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules). This vulnerability is associated with program files LDAPStoreHelper. This issue affects BC-JAVA: from 1.74 before 1.84.
References
Metrics cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

cvssV4_0

{'score': 5.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/S:N/AU:Y/R:A/RE:M/U:Amber'}

Type Values Removed Values Added
Description Improper neutralization of special elements used in an LDAP query ('LDAP injection') vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcprov on all (prov modules). LDAP Injection Vulnerability in LDAPStoreHelper.java This issue affects BC-JAVA: from 1.49 before 1.84.
Title LDAP Injection Vulnerability in LDAPStoreHelper.java
Weaknesses CWE-90
References
Metrics cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}

Weaknesses
  • CWE-90

    Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Sep 18, 2026, 12:04 PM
Reserved
Jan 6, 2026, 3:18 AM
Status
Awaiting Analysis
Published
Apr 15, 2026, 10:16 AM
Modified
Oct 26, 2026, 9:10 PM
Severity
Important
Public date
Apr 15, 2026, 8:59 AM