GHSA-cj8j-37rh-8475 — bcpg-jdk12
Fix: bcgit/bc-java@dc75309GHSA-cj8j-37rh-8475 is a Uncontrolled Resource Consumption vulnerability in org.bouncycastle:bcpg-jdk12. A fix is available for org.bouncycastle:bcpg-jdk12 — see the affected versions and patch details below.
Bouncy Castle Uncontrolled Resource Consumption vulnerability
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-cj8j-37rh-8475.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
org.bouncycastle:bcpg-jdk12☕org.bouncycastle:bcpg-jdk14☕org.bouncycastle:bcpg-jdk15☕org.bouncycastle:bcpg-jdk15to18☕org.bouncycastle:bcpg-jdk15on☕org.bouncycastle:bcpg-jdk16☕org.bouncycastle:bcpg-jdk18onReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.bouncycastle:bcpg-jdk12 | all versions | No fix |
| ☕Maven | org.bouncycastle:bcpg-jdk14 | all versions | 1.84org.bouncycastle:bcpg-jdk14:1.84 |
| ☕Maven | org.bouncycastle:bcpg-jdk15 | all versions | No fix |
| ☕Maven | org.bouncycastle:bcpg-jdk15to18 | all versions | 1.84org.bouncycastle:bcpg-jdk15to18:1.84 |
| ☕Maven | org.bouncycastle:bcpg-jdk15on | all versions | No fix |
| ☕Maven | org.bouncycastle:bcpg-jdk16 | all versions | No fix |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.bouncycastle:bcpg-jdk12, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
No patched version of org.bouncycastle:bcpg-jdk12 has shipped for GHSA-cj8j-37rh-8475 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-cj8j-37rh-8475 can be triaged on real exposure rather than presence alone.
Tailored to GHSA-cj8j-37rh-8475. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
To exploit this issue, an attacker needs to submit a specially crafted PGP AEAD message containing an unbounded chunk size to an application. An attack typically requires the application to process this malformed data, resulting in the uncontrolled allocation of memory resources. The primary impact of this…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Build of Apache Camel 4.14 for Quarkus 3.27 | bcpg-jdk18on | RHSA-2026:13631 |
| Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14 | bcpg-jdk18on | RHSA-2026:17668 |
| Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 7 | eap7-activemq-artemis-0:2.16.0-22.redhat_00057.1.el7eap | RHSA-2026:53644 |
| Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 8 | eap7-activemq-artemis-0:2.16.0-22.redhat_00057.1.el8eap | RHSA-2026:53645 |
| Red Hat JBoss Enterprise Application Platform 7.4 ELS on RHEL 9 | eap7-activemq-artemis-0:2.16.0-22.redhat_00057.1.el9eap | RHSA-2026:53646 |
| Red Hat JBoss Enterprise Application Platform 8.1.7.GA | org.bouncycastle/bcpg-jdk18on:1.84.0.redhat-00001 | RHSA-2026:18059 |
| Red Hat JBoss Enterprise Application Platform 8.1 for RHEL 8 | eap8-bouncycastle-0:1.84.0-1.redhat_00001.1.el8eap | RHSA-2026:18054 |
| Red Hat JBoss Enterprise Application Platform 8.1 for RHEL 9 | eap8-bouncycastle-0:1.84.0-1.redhat_00001.1.el9eap | RHSA-2026:18055 |
Frequently Asked Questions
Is GHSA-cj8j-37rh-8475 in your dependencies?
O3 Security finds GHSA-cj8j-37rh-8475 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.