Bouncy Castle for Java bcpkix, bcprov, bcpkix-fips on All (API modules) allows Excessive Allocation
CVE-2025-8916 (GitHub advisory GHSA-4cx2-fc23-5wg6) is a medium-severity vulnerability with a CVSS 4.0 base score of 6.3, classed as Allocation of Resources Without Limits or Throttling (CWE-770), in 4 packages, including org.bouncycastle:bcpkix-jdk15on (Maven) and org.bouncycastle:bcpkix-jdk15to18 (Maven). Fixed versions: org.bouncycastle:bcpkix-jdk15on 1.79; org.bouncycastle:bcpkix-jdk15to18 1.79; and 2 more packages.
Published 13 Aug 2025Updated 13 May 2026
- CVE ID
- CVE-2025-8916
- GHSA ID
- GHSA-4cx2-fc23-5wg6
- EPSS
- 0.46%higher than 37% of CVEs
- Weakness (CWE)
- CWE-770Allocation of Resources Without Limits or Throttling
- KEV status
- Not in KEV
- Published
- 13 Aug 2025
- Updated
- 13 May 2026
- Ecosystem
- Maven
- Assigned by (CNA)
- bcorg
Summary
Source: OSV (GitHub advisory)
Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bcpkix, bcprov, bcpkix-fips on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files https://github.Com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertP... https://github.Com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.java , https://github.Com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathRevi... https://github.Com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.java .
This issue affects Bouncy Castle for Java: from BC 1.44 through 1.78, from BCPKIX FIPS 1.0.0 through 1.0.7, from BCPKIX FIPS 2.0.0 through 2.0.7.
Technical details
Source: GitHub Advisory Database
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/S:P/R:U/RE:M/U:AmberMedium6.3Base score from GitHub Advisory Database
- Attack Vector AV
- Network
- Attack Complexity AC
- Low
- Attack Requirements AT
- Present
- Privileges Required PR
- None
- User Interaction UI
- None
- Confidentiality (Vulnerable System) VC
- None
- Integrity (Vulnerable System) VI
- None
- Availability (Vulnerable System) VA
- Low
- Confidentiality (Subsequent Systems) SC
- None
- Integrity (Subsequent Systems) SI
- None
- Availability (Subsequent Systems) SA
- None
- Safety S
- Present
- Recovery R
- User
- 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:bcpkix-jdk15onMaven
pkg:maven/org.bouncycastle/bcpkix-jdk15on- Affected versions
- >= 1.44, < 1.79
- Fixed in
- 1.79
Show 24 listed versions
- 1.47
- 1.48
- 1.49
- 1.50
- 1.51
- 1.52
- 1.53
- 1.54
- 1.55
- 1.56
- 1.57
- 1.58
- org.bouncycastle:bcpkix-jdk15to18Maven
pkg:maven/org.bouncycastle/bcpkix-jdk15to18- Affected versions
- >= 1.44, < 1.79
- Fixed in
- 1.79
Show 17 listed versions
- 1.63
- 1.64
- 1.65
- 1.66
- 1.67
- 1.68
- 1.69
- 1.70
- 1.71
- 1.72
- 1.73
- 1.74
- org.bouncycastle:bcpkix-jdk18onMaven
pkg:maven/org.bouncycastle/bcpkix-jdk18on- Affected versions
- >= 1.44, < 1.79
- Fixed in
- 1.79
Show 10 listed versions
- 1.71
- 1.71.1
- 1.72
- 1.73
- 1.74
- 1.75
- 1.76
- 1.77
- 1.78
- 1.78.1
- org.bouncycastle:bcpkix-fipsMaven
pkg:maven/org.bouncycastle/bcpkix-fips- Affected versions
- >= 1.0.0, <= 1.0.7>= 2.0.0, <= 2.0.7
- Fixed in
- 1.0.82.0.8
Show 9 listed versions
- 1.0.0
- 1.0.1
- 1.0.2
- 1.0.3
- 1.0.4
- 1.0.5
- 1.0.6
- 1.0.7
- 2.0.7
| Package | Affected versions | Fixed in |
|---|---|---|
org.bouncycastle:bcpkix-jdk15on Maven pkg:maven/org.bouncycastle/bcpkix-jdk15on |
Show 24 listed versions
|
|
org.bouncycastle:bcpkix-jdk15to18 Maven pkg:maven/org.bouncycastle/bcpkix-jdk15to18 |
Show 17 listed versions
|
|
org.bouncycastle:bcpkix-jdk18on Maven pkg:maven/org.bouncycastle/bcpkix-jdk18on |
Show 10 listed versions
|
|
org.bouncycastle:bcpkix-fips Maven pkg:maven/org.bouncycastle/bcpkix-fips |
Show 9 listed versions
|
|
Fix
Source: OSV (GitHub advisory)
Fix available
- org.bouncycastle:bcpkix-jdk15on: upgrade to
1.79or later - org.bouncycastle:bcpkix-jdk15to18: upgrade to
1.79or later - org.bouncycastle:bcpkix-jdk18on: upgrade to
1.79or later - org.bouncycastle:bcpkix-fips: upgrade to
1.0.8or2.0.8, depending on your release line
Patch commits
added cap on size of subject alt name extension reviewer will accept.
+131 −81 across 3 files
- pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.java+8 −81
- pkix/src/test/java/org/bouncycastle/pkix/test/AllTests.java+1 −0
- pkix/src/test/java/org/bouncycastle/pkix/test/CheckNameConstraintsTest.java+122 −0
Limit alt names also in deprecated CertPath reviewer
+21 −84 across 3 files
- pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.java+6 −1
- prov/src/main/java/org/bouncycastle/jce/provider/RFC3280CertPathUtilities.java+5 −0
- prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.java+10 −83
Vulnerability intelligence
Root cause analysis
Vulnerable functions
References
Fixes 2
Advisories 3
Package 1
Credits
- Bing Shifinder
Questions about CVE-2025-8916
- What is the GHSA ID for CVE-2025-8916?
- GitHub tracks CVE-2025-8916 as GHSA-4cx2-fc23-5wg6.
- What is the CVSS score of CVE-2025-8916?
- CVE-2025-8916 has a CVSS 4.0 base score of 6.3 (Medium), vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/S:P/R:U/RE:M/U:Amber.
- Which versions are affected by CVE-2025-8916?
- org.bouncycastle:bcpkix-jdk15on (Maven): >= 1.44, < 1.79. org.bouncycastle:bcpkix-jdk15to18 (Maven): >= 1.44, < 1.79. org.bouncycastle:bcpkix-jdk18on (Maven): >= 1.44, < 1.79. org.bouncycastle:bcpkix-fips (Maven): >= 1.0.0, <= 1.0.7; >= 2.0.0, <= 2.0.7.
- How do I fix CVE-2025-8916?
- Upgrade each package to its fixed version: org.bouncycastle:bcpkix-jdk15on 1.79; org.bouncycastle:bcpkix-jdk15to18 1.79; org.bouncycastle:bcpkix-jdk18on 1.79; org.bouncycastle:bcpkix-fips 1.0.8 or 2.0.8. The fix is in commits 310b30a and ff444a4.
- What is the Package URL (PURL) for CVE-2025-8916?
- The affected packages' PURLs are pkg:maven/org.bouncycastle/bcpkix-jdk15on, pkg:maven/org.bouncycastle/bcpkix-jdk15to18, pkg:maven/org.bouncycastle/bcpkix-jdk18on and pkg:maven/org.bouncycastle/bcpkix-fips.
- Is CVE-2025-8916 exploited in the wild?
- CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2025-8916. 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.46% chance of exploitation in the next 30 days, higher than 37% 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:29 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.