cve.bz

CVE-2026-97873 legion of the bouncy castle inc.

5.3 mediumEPSS 0.3%

Medium (5.3) in legion of the bouncy castle inc.. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
In Bouncy Castle for Java before 1.86, the raw JCA provider's legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families ran their password-based key derivation with an iteration count taken from untrusted input without bounding it, so a small input could dictate an arbitrary amount of work before anything could be verified. The AlgorithmParameters implementations (PKCS12PBE and its object identifier aliases, and PBKDF1) accepted any count from an encoded PKCS12PBEParams or PBEParameter, narrowing a value beyond the int range with intValue(), and every Cipher, Mac and SecretKeyFactory in these families derived with whatever count it was given, including one decoded by another provider's AlgorithmParameters, as when javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypts a PKCS#12 PBE-protected private key with BC. Both the parameter parse and the derivations now reject a negative or over-limit count under the org.bouncycastle.pbe.max_iteration_count property (default 10,000,000) that already bounded PBKDF2 (CVE-2026-17508), and the parse rejects a count beyond the int range rather than narrowing it. This issue also affects Bouncy Castle for Java LTS before 2.73.13.

Severity

CVSS 4.0

5.3 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/U:Amber
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-97873 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-97873?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-97873?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-97873 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • legion of the bouncy castle inc.:bc-java
  • legion of the bouncy castle inc.:bc-lts-java

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Inc. BC-JAVAbefore 1.86
Legion of the Bouncy Castle Inc. BC-LTS-JAVAfrom 2.73.0 before 2.73.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13bouncycastleno fix listedDEBIAN-CVE-2026-97873
Debian14bouncycastle1.86-1DEBIAN-CVE-2026-97873
Ubuntu26.04:LTS, 26.10, Pro:16.04:LTS and 4 morebouncycastleno fix listedUBUNTU-CVE-2026-97873
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morebouncycastle1.86-150200.3.41.1SUSE-SU-2026:4797-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0bouncycastle1.86-160000.1.1SUSE-SU-2026:24461-1
openSUSELeap 16.0bouncycastle1.86-160000.1.1openSUSE-SU-2026:22169-1
openSUSETumbleweedbouncycastle1.86-1.1openSUSE-SU-2026:12090-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in Bouncy Castle's JCA provider when handling legacy PBES1 and PKCS#12 password-based encryption (PBE) parameters. The parameter parser and key derivation implementations accept iteration counts from untrusted cryptographic inputs without enforcing an upper bound. A remote, unauthenticated attacker can supply crafted parameters containing an excessively large iteration count, forcing the system to execute an arbitrary number of derivation cycles before failing verification. This causes disproportionate CPU resource consumption, resulting in a denial of service (DoS).

Red Hat's mitigation

Configure applications to reject legacy PBES1 and PKCS#12 cipher suites in favor of modern PBKDF2 or Argon2 derivations. Where legacy formats cannot be disabled, restrict network endpoints from accepting untrusted, serialized cryptographic parameters or PKCS#12 containers.

ProductPackageStateAdvisory
OpenShift Developer Tools and ServicesjenkinsNot affected
OpenShift Developer Tools and Servicesjenkins-2-pluginsNot affected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Fix deferred
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel9Fix deferred
Red Hat AMQ Broker 7bcprov-jdk18onFix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/de-minimal-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/de-supported-rhel9Fix deferred
Red Hat build of Apache Camel 4 for Quarkus 3bcprov-jdk18onFix deferred
Red Hat build of Apache Camel for Spring Boot 4bcprov-jdk18onFix deferred
Red Hat build of Apicurio Registry 3bcprov-lts8onFix deferred
Red Hat Build of Keycloakbcprov-jdk18onFix deferred
Red Hat Build of Keycloakrhbk/keycloak-rhel9Fix deferred
Red Hat build of Quarkusbcprov-jdk18onFix deferred
Red Hat Enterprise Linux 8pki-core:10.6/resteasyNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/resteasyNot affected
Red Hat Enterprise Linux 9jmcNot affected
Red Hat Enterprise Linux 9resteasyNot affected
Red Hat Fuse 7bcprov-jdk15onFix deferred
Red Hat Fuse 7bcprov-jdk18onFix deferred
Red Hat JBoss Enterprise Application Platform 7bcprov-jdk15onFix deferred
18 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-97873.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON