Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-8885

MEDIUM 6.3EPSS 47%

Possible DOS in processing specially formed ASN.1 Object Identifiers

Also known as GHSA-67mf-3cr5-8w23

Mitigation

  • Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later.
  • Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later.
  • Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later.
  • Upgrade org.bouncycastle:bctls-jdk14 to 1.78 or later.
  • Upgrade org.bouncycastle:bctls-jdk15to18 to 1.78 or later.
  • Upgrade org.bouncycastle:bctls-jdk18on to 1.78 or later.
  • Upgrade org.bouncycastle:bc-fips to one of 1.0.2.6, 2.0.1 (or later in the same release line).
  • Vendor workaround: Limiting the size of ASN.1 objects that can be loaded from "the wild", or putting in place some other validation for such objects, will mitigate the risk of an exploit by automatically putting a cap on the maximum size of an ASN.1 OBJECT IDENTIFIER.

Who should check

  • Projects that depend on Maven package org.bouncycastle:bcprov-jdk14 (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bcprov-jdk15to18 (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bcprov-jdk18on (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bctls-jdk14 (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bctls-jdk15to18 (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bctls-jdk18on (>= 1.0, < 1.78)
  • Projects that depend on Maven package org.bouncycastle:bc-fips (>= 1.0.0, < 1.0.2.6)
  • Anyone running Legion of the Bouncy Castle Inc. BC Java >= 1.0, <= 1.77

Vulnerability facts

Affected
org.bouncycastle:bcprov-jdk14 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk18on >= 1.0, < 1.78; org.bouncycastle:bctls-jdk14 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk18on >= 1.0, < 1.78; org.bouncycastle:bc-fips >= 1.0.0, < 1.0.2.6
Fixed in
1.78, 1.0.2.6, 2.0.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
6.3 (v4.0, CNA)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:AmberOpen in CVSS calculator
Show all 15 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: None
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: Low
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
  • S: P
  • R: U
  • RE: M
  • U: Amber
EPSS
0.67% chance of exploitation in 30 days (percentile 47, 2026-11-26)
CWE
CWE-770
Published
Modified

Description

Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. BC Java bcprov on All (API modules), Legion of the Bouncy Castle Inc. BC-FJA bc-fips on All allows Excessive Allocation. This vulnerability is associated with program files https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdenti... https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.Java . This issue affects BC Java: from 1.0 through 1.77; BC-FJA: from 1.0.0 through 1.0.2.5, from 2.0.0 through 2.0.1.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.bouncycastle:bcprov-jdk14>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bcprov-jdk15to18>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bcprov-jdk18on>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bctls-jdk14>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bctls-jdk15to18>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bctls-jdk18on>= 1.0, < 1.781.78osv
Maven org.bouncycastle:bc-fips>= 1.0.0, < 1.0.2.61.0.2.6, 2.0.1osv
Legion of the Bouncy Castle Inc. BC Java>= 1.0, <= 1.77—cvelist
Legion of the Bouncy Castle Inc. BC-FJA>= 1.0.0, <= 1.0.2.5; >= 2.0.0, <= 2.0.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-8885. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-8885.md
Affected: org.bouncycastle:bcprov-jdk14 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk18on >= 1.0, < 1.78; org.bouncycastle:bctls-jdk14 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk18on >= 1.0, < 1.78; org.bouncycast…
Fixed in: 1.78, 1.0.2.6, 2.0.1

Steps:
1. Search this machine and project for org.bouncycastle:bcprov-jdk14 (Maven), org.bouncycastle:bcprov-jdk15to18 (Maven), org.bouncycastle:bcprov-jdk18on (Maven), org.bouncycastle:bctls-jdk14 (Maven), org.bouncycastle:bctls-jdk15to18 (Maven), org.bouncycastle:bctls-jdk18on (Maven): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-8885 being exploited?

There is no confirmed exploitation: CVE-2025-8885 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-8885?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2025-8885?

org.bouncycastle:bcprov-jdk14 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bcprov-jdk18on >= 1.0, < 1.78; org.bouncycastle:bctls-jdk14 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk15to18 >= 1.0, < 1.78; org.bouncycastle:bctls-jdk18on >= 1.0, < 1.78; org.bouncycastle:bc-fips >= 1.0.0, < 1.0.2.6.

Is there a fix for CVE-2025-8885?

Yes. Fixed in 1.78, 1.0.2.6, 2.0.1. Upgrade org.bouncycastle:bcprov-jdk14 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk15to18 to 1.78 or later. Upgrade org.bouncycastle:bcprov-jdk18on to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk14 to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk15to18 to 1.78 or later. Upgrade org.bouncycastle:bctls-jdk18on to 1.78 or later. Upgrade org.bouncycastle:bc-fips to one of 1.0.2.6, 2.0.1 (or later in the same release line). Vendor workaround: Limiting the size of ASN.1 objects that can be loaded from "the wild", or putting in place some other validation for such objects, will mitigate the risk of an exploit by automatically putting a cap on the maximum size of an ASN.1 OBJECT IDENTIFIER.

How do I check if I'm affected by CVE-2025-8885?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors