Bouncy Castle for Java on All (API modules) allows Excessive Allocation

Description

A resource allocation vulnerability exists in Bouncy Castle for Java (by Legion of the Bouncy Castle Inc.) that affects all API modules. The vulnerability allows attackers to cause excessive memory allocation through unbounded resource consumption, potentially leading to denial of service. The issue is located in the ASN1ObjectIdentifier.java file in the core module.

This issue affects Bouncy Castle for Java: from BC 1.0 through 1.77, from BC-FJA 1.0.0 through 2.0.0.

Basic information

Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2025-08-12 12:30:32 UTC
Updated
2025-09-03 13:04:20 UTC
GitHub reviewed
2025-08-12 19:36:18 UTC
NVD published
2025-08-12

EPSS Score

Score Percentile
0.08% 22.92%

CVSS Scores

Base score Version Severity Vector
6.3 4.0
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 Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network.
Attack complexity (AC:L)
Exploitation conditions are straightforward and stable.
Attack requirements (AT:P)
Additional preconditions must be present for exploitation.
Privileges required (PR:N)
No privileges are required.
User interaction (UI:N)
No user interaction is required.
Vulnerable system confidentiality impact (VC:N)
No confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:N)
No integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:L)
Limited availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:N)
No confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:N)
No integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.
Safety (supplemental) (S:P)
Present: impact meets IEC 61508 marginal, critical, or catastrophic safety consequence levels.
Recovery (supplemental) (R:U)
User: manual user intervention is needed to recover services.
Vulnerability response effort (supplemental) (RE:M)
Moderate effort (remote update, disable subsystem, simple upgrade with minor service impact).
Provider urgency (supplemental) (U:AMBER)
Amber: provider rates moderate urgency.

Identifiers

CWEs

CWE id Name
CWE-770 Allocation of Resources Without Limits or Throttling

Credits

  • xnox (analyst)

Affected packages (8)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.bouncycastle:bcprov-jdk14 >= 1.0, < 1.78 1.78
maven org.bouncycastle:bcprov-jdk15to18 >= 1.0, < 1.78 1.78
maven org.bouncycastle:bcprov-jdk18on >= 1.0, < 1.78 1.78
maven org.bouncycastle:bctls-jdk14 >= 1.0, < 1.78 1.78
maven org.bouncycastle:bctls-jdk15to18 >= 1.0, < 1.78 1.78
maven org.bouncycastle:bctls-jdk18on >= 1.0, < 1.78 1.78
maven org.bouncycastle:bc-fips = 2.0.0 2.0.1
maven org.bouncycastle:bc-fips >= 1.0.0, < 1.0.2.6 1.0.2.6

References

cvelogic Threat Intelligence