CVE-2026-97873
Last modified
CVE-2026-97873 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Legion of the Bouncy Castle Inc. | BC-JAVA | < 1.86 |
| Legion of the Bouncy Castle Inc. | BC-LTS-JAVA | >= 2.73.0, < 2.73.13 |
References
Timeline
- Published
- Last Modified
- Status
- Awaiting Analysis
Frequently Asked Questions
What is CVE-2026-97873?
How severe is CVE-2026-97873?
How do I fix CVE-2026-97873?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-97868A security vulnerability has been detected in sheshbabu zen …3.5
- CVE-2026-97869A flaw has been found in langchain4j up to 1.5.3-beta10/1.11…4.1
- CVE-2026-9787Quest NetVault Backup NVBULogDaemon Command Injection Remote…8.8
- CVE-2026-97870When Hessian remoting endpoints are served by the embedded H…
- CVE-2026-97871A vulnerability has been found in Zhonglun CloudPos up to 3.…7.3
- CVE-2026-97872When an EJB is exposed over the optional Hessian protocol in…
- CVE-2026-97874When Hessian remoting is configured with BASIC authenticatio…
- CVE-2026-97875Rojo's "rojo serve" HTTP API (default port 34872) has no Hos…8.1
- CVE-2026-97876A local attacker with control over GRUB's configuration can …6.4
- CVE-2026-97877A vulnerability was determined in zhistaredu StarTraining up…7.3
- CVE-2026-97878A vulnerability was identified in zhistaredu StarTraining up…7.3
- CVE-2026-97879A security flaw has been discovered in zhistaredu StarTraini…5.3
Are you affected by CVE-2026-97873?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
