Bouncy Castle Uncontrolled Resource Consumption vulnerability

Description

Allocation of resources without limits or throttling vulnerability in Legion of the Bouncy Castle Inc. BC-JAVA bcpg on all (pg modules). This issue affects BC-JAVA before 1.84.

Unbounded PGP AEAD chunk size leads to pre-auth resource exhaustion.

Basic information

Type
reviewed
Severity
high
Advisory on GitHub
Open advisory ↗
Repository advisory
Source code
Browse source ↗
Published (advisory)
2026-04-17 18:31:50 UTC
Updated
2026-04-18 01:06:38 UTC
GitHub reviewed
2026-04-18 01:06:35 UTC
NVD published
2026-04-15

EPSS Score

Score Percentile
0.04% 12.75%

CVSS Scores

Base score Version Severity Vector
8.7 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N 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:N)
No additional preconditions are required beyond normal reachability.
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:H)
High 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.

Identifiers

CWEs

CWE id Name
CWE-400 Uncontrolled Resource Consumption

Affected packages (7)

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

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.bouncycastle:bcpg-jdk12 <= 130
maven org.bouncycastle:bcpg-jdk14 < 1.84 1.84
maven org.bouncycastle:bcpg-jdk15 <= 1.46
maven org.bouncycastle:bcpg-jdk15to18 < 1.84 1.84
maven org.bouncycastle:bcpg-jdk15on <= 1.70
maven org.bouncycastle:bcpg-jdk16 <= 1.46
maven org.bouncycastle:bcpg-jdk18on < 1.84 1.84

References

cvelogic Threat Intelligence