Bouncy Castle: Name Constraints bypass via trailing dot in rfc822Name and URIGHSA-9pwp-9qqc-pr26
CRITICALFix: bcgit/bc-java@2c28b25GHSA-9pwp-9qqc-pr26 is a critical-severity (CVSS 9.1) CWE-295 vulnerability in org.bouncycastle:bc-fips. A fix is available for org.bouncycastle:bc-fips — see the affected versions and patch details below.
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.
- A successful exploit gives an attacker total control of the affected component, not partial access.
- 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-9pwp-9qqc-pr26.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.bouncycastle:bc-fips☕org.bouncycastle:bc-fips☕org.bouncycastle:bc-fips☕org.bouncycastle:bcprov-jdk18on☕org.bouncycastle:bcprov-lts8on☕org.bouncycastle:bcprov-jdk15to18Real-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
In Bouncy Castle for Java before 1.85, Name Constraints bypass via trailing dot in rfc822Name and URI. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.bouncycastle:bc-fips | all versions | 1.0.2.7org.bouncycastle:bc-fips:1.0.2.7 |
| ☕Maven | org.bouncycastle:bc-fips | ≥ 2.0.0&&< 2.0.2 | 2.0.2org.bouncycastle:bc-fips:2.0.2 |
| ☕Maven | org.bouncycastle:bc-fips | ≥ 2.1.0&&< 2.1.3 | 2.1.3org.bouncycastle:bc-fips:2.1.3 |
| ☕Maven | org.bouncycastle:bcprov-jdk18on | all versions | 1.85org.bouncycastle:bcprov-jdk18on:1.85 |
| ☕Maven | org.bouncycastle:bcprov-lts8on | all versions | 2.73.12org.bouncycastle:bcprov-lts8on:2.73.12 |
| ☕Maven | org.bouncycastle:bcprov-jdk15to18 | all versions | 1.85org.bouncycastle:bcprov-jdk15to18:1.85 |
Affected Products
bc-javabouncycastlebouncy castle for java ltsbouncycastlefips java apibouncycastleDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.bouncycastle:bc-fips, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.bouncycastle:bc-fips to 1.0.2.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-9pwp-9qqc-pr26 is resolved across your whole dependency graph.
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.
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.
This is an Important flaw in Bouncy Castle for Java, a cryptographic library used across various Red Hat products. The vulnerability allows an attacker to bypass Name Constraints in X.509 certificates by manipulating rfc822Name and URI fields with a trailing dot. This bypass could lead to spoofing or unauthorized…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-operator-bundle:26.4.17-2 | RHSA-2026:95760 |
| Red Hat build of Keycloak 26.4.17 | bcpkix-jdk18on | RHSA-2026:95759 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-operator-bundle:26.6.8-2 | RHSA-2026:95762 |
| Red Hat build of Keycloak 26.6.8 | bcpkix-jdk18on | RHSA-2026:95761 |
Frequently Asked Questions
Is GHSA-9pwp-9qqc-pr26 in your dependencies?
Find it across Maven, including transitive dependencies.