CVE-2026-12185: CWE-789 Memory Allocation with Excessive Size Value in Legion of the Bouncy Castle Inc. BC-JAVA
A high-severity vulnerability (CVE-2026-12185) affects Bouncy Castle for Java (BC-JAVA) versions before 1.85 and LTS versions from 2.73.0 up to but not including 2.73.12. The issue involves memory allocation using untrusted length values in BKS/UBER keystore processing before integrity checks are performed, potentially leading to excessive memory allocation.
AI Analysis
Technical Summary
CVE-2026-12185 is a CWE-789 vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library. Specifically, in versions prior to 1.85 and LTS versions 2.73.0 through 2.73.11, the BKS/UBER keystore implementation allocates memory based on untrusted length values before verifying data integrity. This can result in memory allocation with excessive size values, which may lead to denial of service or other impacts related to resource exhaustion. The CVSS 4.0 base score is 7.1, indicating a high severity with network attack vector, low attack complexity, no privileges required, user interaction needed, and high impact on availability.
Potential Impact
The vulnerability allows an attacker to cause excessive memory allocation by providing crafted input to the BKS/UBER keystore processing functions. This can lead to denial of service conditions due to resource exhaustion. There is no indication of code execution or data confidentiality/integrity compromise. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided data. Users should monitor the Legion of the Bouncy Castle Inc. advisories for updates and apply patches once available. Until then, avoid processing untrusted BKS/UBER keystore data if possible.
CVE-2026-12185: CWE-789 Memory Allocation with Excessive Size Value in Legion of the Bouncy Castle Inc. BC-JAVA
Description
A high-severity vulnerability (CVE-2026-12185) affects Bouncy Castle for Java (BC-JAVA) versions before 1.85 and LTS versions from 2.73.0 up to but not including 2.73.12. The issue involves memory allocation using untrusted length values in BKS/UBER keystore processing before integrity checks are performed, potentially leading to excessive memory allocation.
CVSS v4.0
Score 7.1high
Affected software
pkg:github/bcprov-lts8onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-12185 is a CWE-789 vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library. Specifically, in versions prior to 1.85 and LTS versions 2.73.0 through 2.73.11, the BKS/UBER keystore implementation allocates memory based on untrusted length values before verifying data integrity. This can result in memory allocation with excessive size values, which may lead to denial of service or other impacts related to resource exhaustion. The CVSS 4.0 base score is 7.1, indicating a high severity with network attack vector, low attack complexity, no privileges required, user interaction needed, and high impact on availability.
Potential Impact
The vulnerability allows an attacker to cause excessive memory allocation by providing crafted input to the BKS/UBER keystore processing functions. This can lead to denial of service conditions due to resource exhaustion. There is no indication of code execution or data confidentiality/integrity compromise. No known exploits in the wild have been reported.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is documented in the provided data. Users should monitor the Legion of the Bouncy Castle Inc. advisories for updates and apply patches once available. Until then, avoid processing untrusted BKS/UBER keystore data if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-06-14T00:39:34.400Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6fe8f1bf32cb7a34b61c7c
Added to database: 08/03/2026, 01:03:45 UTC
Last enriched: 08/03/2026, 01:20:19 UTC
Last updated: 08/03/2026, 01:20:19 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.