Skip to main content
EPSS 0.2%top 86%

CVE-2026-12185: CWE-789 Memory Allocation with Excessive Size Value in Legion of the Bouncy Castle Inc. BC-JAVA

0
High
Published: 08/04/2026 (08/04/2026, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: BC-JAVA

Description

CVE-2026-12185 is a high severity vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library. It involves memory allocation with excessive size values in BKS/UBER keystore implementations before integrity checks are performed. This affects versions prior to 1.85 and versions from 2.73.0 up to but not including 2.73.12.

CVSS v4.0

Score 7.1high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber

Affected software

Legion of the Bouncy Castle Inc.

BC-JAVA

Affected versions
>=0 <1.85

Legion of the Bouncy Castle Inc.

BC-LTS-JAVA

Affected versions
>=2.73.0 <2.73.12
GitHub Actionsmore threats →cve
bcprov
pkg:github/bcprov
Affected versions
>=0 <1.85
GitHub Actionsmore threats →cve
bcprov-lts8on
pkg:github/bcprov-lts8on
Affected versions
>=2.73.0 <2.73.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/10/2026, 14:54:13 UTC

Technical Analysis

The vulnerability identified as CVE-2026-12185 in BC-JAVA arises from the library allocating memory based on untrusted length values before verifying their integrity in the BKS/UBER keystore components. This can lead to excessive memory allocation, potentially causing denial of service or other impacts related to resource exhaustion. The issue affects BC-JAVA versions earlier than 1.85 and versions starting from 2.73.0 up to 2.73.12 (exclusive). There is no vendor advisory or patch information provided, and no known exploits in the wild have been reported.

Potential Impact

The vulnerability allows an attacker to trigger memory allocation with excessive size values, which may lead to denial of service or resource exhaustion conditions. No evidence of code execution or data compromise is provided. The CVSS 4.0 base score is 7.1, indicating high severity with network attack vector, low attack complexity, no privileges required, and user interaction needed.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is indicated in the provided data. Users should monitor the vendor's announcements for patches addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
bcorg
Date Reserved
2026-06-14T00:39:34.400Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a6fe8f1bf32cb7a34b61c7c

Added to database: 08/03/2026, 01:03:45 UTC

Last enriched: 08/10/2026, 14:54:13 UTC

Last updated: 09/17/2026, 02:01:02 UTC

Views: 45

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses