Bouncy Castle has an LDAP injection
CVE-2026-0636 (GitHub advisory GHSA-c3fc-8qff-9hwx) is a medium-severity vulnerability with a CVSS 4.0 base score of 5.5, classed as Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection') (CWE-90), in org.bouncycastle:bcprov-jdk14 (Maven), org.bouncycastle:bcprov-jdk15to18 (Maven) and org.bouncycastle:bcprov-jdk18on (Maven). It is fixed in 1.84.
Published 15 Apr 2026Updated 18 Sept 2026
- CVE ID
- CVE-2026-0636
- GHSA ID
- GHSA-c3fc-8qff-9hwx
- EPSS
- 0.52%higher than 42% of CVEs
- Weakness (CWE)
- CWE-90Improper Neutralization of Special Elements used in an LDAP Query ('LDAP Injection')
- KEV status
- Not in KEV
- Published
- 15 Apr 2026
- Updated
- 18 Sept 2026
- Ecosystem
- Maven
- Assigned by (CNA)
- bcorg
Summary
Source: OSV (GitHub advisory)
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.
Technical details
Source: GitHub Advisory Database
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/RE:M/U:AmberMedium5.5Base score from GitHub Advisory Database
- Attack Vector AV
- Network
- Attack Complexity AC
- Low
- Attack Requirements AT
- None
- Privileges Required PR
- None
- User Interaction UI
- None
- Confidentiality (Vulnerable System) VC
- Low
- Integrity (Vulnerable System) VI
- None
- Availability (Vulnerable System) VA
- None
- Confidentiality (Subsequent Systems) SC
- None
- Integrity (Subsequent Systems) SI
- None
- Availability (Subsequent Systems) SA
- None
- Exploit Maturity E
- Proof-of-Concept
- Vulnerability Response Effort RE
- Moderate
- Provider Urgency U
- Amber
CISA SSVC decision points
- Exploitation
- none
- No public exploitation evidence
- Automatable
- yes
- Attackers can automate this at scale
- Technical impact
- partial
- Limited control of the affected system
CISA Coordinator assessment (SSVC 2.0.3) via CVE.org.
Affected packages
Source: OSV (GitHub advisory)
- org.bouncycastle:bcprov-jdk14Maven
pkg:maven/org.bouncycastle/bcprov-jdk14- Affected versions
- >= 1.74, < 1.84
- Fixed in
- 1.84
Show 11 listed versions
- 1.74
- 1.75
- 1.76
- 1.77
- 1.78
- 1.78.1
- 1.79
- 1.80
- 1.81
- 1.82
- 1.83
- org.bouncycastle:bcprov-jdk15to18Maven
pkg:maven/org.bouncycastle/bcprov-jdk15to18- Affected versions
- >= 1.74, < 1.84
- Fixed in
- 1.84
Show 11 listed versions
- 1.74
- 1.75
- 1.76
- 1.77
- 1.78
- 1.78.1
- 1.79
- 1.80
- 1.81
- 1.82
- 1.83
- org.bouncycastle:bcprov-jdk18onMaven
pkg:maven/org.bouncycastle/bcprov-jdk18on- Affected versions
- >= 1.74, < 1.84
- Fixed in
- 1.84
Show 13 listed versions
- 1.74
- 1.75
- 1.76
- 1.77
- 1.78
- 1.78.1
- 1.79
- 1.80
- 1.80.2
- 1.81
- 1.81.1
- 1.82
| Package | Affected versions | Fixed in |
|---|---|---|
org.bouncycastle:bcprov-jdk14 Maven pkg:maven/org.bouncycastle/bcprov-jdk14 |
Show 11 listed versions
|
|
org.bouncycastle:bcprov-jdk15to18 Maven pkg:maven/org.bouncycastle/bcprov-jdk15to18 |
Show 11 listed versions
|
|
org.bouncycastle:bcprov-jdk18on Maven pkg:maven/org.bouncycastle/bcprov-jdk18on |
Show 13 listed versions
|
|
Fix
Source: OSV (GitHub advisory)
Fix available
- org.bouncycastle:bcprov-jdk14: upgrade to
1.84or later - org.bouncycastle:bcprov-jdk15to18: upgrade to
1.84or later - org.bouncycastle:bcprov-jdk18on: upgrade to
1.84or later
Patch commits
refactored out common code from LDAP classes
+154 −158 across 3 files
- prov/src/main/java/org/bouncycastle/jce/provider/X509LDAPCertStoreSpi.java+5 −96
- prov/src/main/java/org/bouncycastle/ldap/LDAPUtils.java+112 −0
- prov/src/main/java/org/bouncycastle/x509/util/LDAPStoreHelper.java+37 −62
Vulnerability intelligence
Root cause analysis
Vulnerable functions
References
Advisories 30
Reports and issues 1
Package 1
Credits
- Prasanth Sundararajan (prasanth.srihari@gmail.com)finder
Questions about CVE-2026-0636
- What is the GHSA ID for CVE-2026-0636?
- GitHub tracks CVE-2026-0636 as GHSA-c3fc-8qff-9hwx.
- What is the CVSS score of CVE-2026-0636?
- CVE-2026-0636 has a CVSS 4.0 base score of 5.5 (Medium), 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/RE:M/U:Amber. Other published scores: CVSS 3.1 6.5.
- Which versions are affected by CVE-2026-0636?
- org.bouncycastle:bcprov-jdk14 (Maven): >= 1.74, < 1.84. org.bouncycastle:bcprov-jdk15to18 (Maven): >= 1.74, < 1.84. org.bouncycastle:bcprov-jdk18on (Maven): >= 1.74, < 1.84.
- How do I fix CVE-2026-0636?
- Upgrade to 1.84 or later. The fix is in commit d20cdb8.
- What is the Package URL (PURL) for CVE-2026-0636?
- The affected packages' PURLs are pkg:maven/org.bouncycastle/bcprov-jdk14, pkg:maven/org.bouncycastle/bcprov-jdk15to18 and pkg:maven/org.bouncycastle/bcprov-jdk18on.
- Is CVE-2026-0636 exploited in the wild?
- CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-0636. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. CISA's SSVC assessment rates exploitation as "none". EPSS estimates a 0.52% chance of exploitation in the next 30 days, higher than 42% of CVEs.
Data sources
Upstream records
- OSV (GitHub advisory)LoadedRaw JSON
- GitHub Advisory DatabaseLoadedRaw JSON
- OSV (CVE record)LoadedRaw JSON
- CVE.orgLoaded
- CISA KEV catalogLoaded
Fetched 2 days ago (13 Oct 2026, 13:28 UTC). Records refresh automatically after 24 hours.
Where each part of this page came from
- Title and description
- OSV (GitHub advisory)
- Severity score
- GitHub Advisory Database
- Weakness (CWE)
- GitHub Advisory Database
- Affected packages
- OSV (GitHub advisory)
- Fix
- OSV (GitHub advisory)
- References
- Computed by CVEminer
- SSVC
- CVE.org
- KEV status
- CISA KEV catalog
- EPSS
- GitHub Advisory Database
OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.