Bouncy Castle for Java on All (API modules) allows Excessive Allocation
Moderate severity
GitHub Reviewed
Published
Aug 12, 2025
to the GitHub Advisory Database
•
Updated Sep 3, 2025
Package
Affected versions
= 2.0.0
>= 1.0.0, < 1.0.2.6
Patched versions
2.0.1
1.0.2.6
Description
Published by the National Vulnerability Database
Aug 12, 2025
Published to the GitHub Advisory Database
Aug 12, 2025
Reviewed
Aug 12, 2025
Last updated
Sep 3, 2025
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.
References