CVE-2026-3505 — Vulnerability in org.bouncycastle:bcpg-jdk12
Bouncy Castle Uncontrolled Resource Consumption vulnerability
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.92%). Schedule for your next planned update.
Does your project use an affected org.bouncycastle:bcpg-jdk12 version?
Paste your pom.xml to check it for CVE-2026-3505 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Allocation of resources without limits or throttling vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcpg on all (pg modules). This issue affects BC-JAVA before 1.84.
Unbounded PGP AEAD chunk size leads to pre-auth resource exhaustion.
Advisory Timeline
- First published April 17, 2026 (223 days ago).
- Last revised September 10, 2026 — 145 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcpg-jdk15to18 -->
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcpg-jdk18on -->
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcpg-jdk14 -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (7)
Affects 1 ecosystem: Maven (7).
| Package | Fixed In |
|---|---|
| org.bouncycastle:bcpg-jdk12 Maven · Affected: 130 | Range-based data available |
| org.bouncycastle:bcpg-jdk15to18 Maven · Affected: 1.63, 1.64, 1.65, 1.66 (+21 more) | 1.84 |
| org.bouncycastle:bcpg-jdk15 Maven · Affected: 1.43, 1.44, 1.45, 1.46 | Range-based data available |
| org.bouncycastle:bcpg-jdk18on Maven · Affected: 1.71, 1.71.1, 1.72, 1.72.1 (+15 more) | 1.84 |
| org.bouncycastle:bcpg-jdk15on Maven · Affected: 1.46, 1.47, 1.48, 1.49 (+21 more) | Range-based data available |
| org.bouncycastle:bcpg-jdk14 Maven · Affected: 1.44, 1.45, 1.46, 1.47 (+36 more) | 1.84 |
| org.bouncycastle:bcpg-jdk16 Maven · Affected: 1.43, 1.44, 1.45, 1.46 | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References
Frequently Asked Questions
- What is CVE-2026-3505?
- Bouncy Castle Uncontrolled Resource Consumption vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-3505?
- CVE-2026-3505 affects org.bouncycastle:bcpg-jdk12, org.bouncycastle:bcpg-jdk15to18 and org.bouncycastle:bcpg-jdk15 (and 4 more). It has a 0.9% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-3505 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 58.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-14813CRITICAL
Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks
- CVE-2026-8763CRITICAL
Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI
- CVE-2026-61689HIGH
XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes
- CVE-2026-5598HIGH
Bouncy Castle Has Covert Timing Channel Vulnerability
- CVE-2026-13506HIGH
Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard
- CVE-2024-29857MEDIUM
Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.
- CVE-2024-30172MEDIUM
Bouncy Castle crafted signature and public key can be used to trigger an infinite loop
- CVE-2024-30171MEDIUM
Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")