Skip to main content

CVE-2026-3505 — Vulnerability in org.bouncycastle:bcpg-jdk12

HIGH

Bouncy Castle Uncontrolled Resource Consumption vulnerability

Published April 17, 2026Updated September 10, 2026Source: OSV

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.

Check my pom.xml

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.

Maven
Update org.bouncycastle:bcpg-jdk15to18 to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcpg-jdk15to18 -->
Maven
Update org.bouncycastle:bcpg-jdk18on to 1.84 or later
<!-- Update pom.xml dependency version to 1.84 for org.bouncycastle:bcpg-jdk18on -->
Maven
Update org.bouncycastle:bcpg-jdk14 to 1.84 or later
<!-- 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).

PackageFixed In
org.bouncycastle:bcpg-jdk12 Maven · Affected: 130Range-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.46Range-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.46Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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

CVSS Score
7.5

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.92%
EPSS percentile: 58.3

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

GHSA-cj8j-37rh-8475

Related CVEs

  • CVE-2025-14813
    CRITICAL

    Bouncy Castle for Java GOST 28147 CTR mode reuses keystream after 255 blocks

  • CVE-2026-8763
    CRITICAL

    Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URI

  • CVE-2026-61689
    HIGH

    XWiki Platform: HQL injection in search allows unauthenticated database extraction including password hashes

  • CVE-2026-5598
    HIGH

    Bouncy Castle Has Covert Timing Channel Vulnerability

  • CVE-2026-13506
    HIGH

    Bouncy Castle: Lazy ASN.1 sequence forcing resets nesting-depth guard

  • CVE-2024-29857
    MEDIUM

    Bouncy Castle certificate parsing issues cause high CPU usage during parameter evaluation.

  • CVE-2024-30172
    MEDIUM

    Bouncy Castle crafted signature and public key can be used to trigger an infinite loop

  • CVE-2024-30171
    MEDIUM

    Bouncy Castle affected by timing side-channel for RSA key exchange ("The Marvin Attack")

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml