Description
Allocation of resources without limits or throttling in the CMP/CRMF password-based MAC verifier (PKMacBuilder) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a CMP message or CRMF certificate request whose PBMParameter declares a very large iteration count, because PKMacBuilder enforced its iteration-count ceiling only when the caller had supplied an explicit maximum through the PKMacBuilder(IPKMacPrimitivesProvider, int) constructor. With any other constructor, ProtectedPkiMessage.Verify and CertificateRequestMessage.IsValidSigningKeyPop performed as many hash iterations as the sender requested, up to about 2^31, before the MAC could be checked.
Published: 2026-10-02
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Denial of service
Action: Immediate Patch
AI Analysis

Impact

An unbounded iteration count in the PKMacBuilder verifier (PKMacBuilder) of the Legion of the Bouncy Castle Inc. bc-csharp library allows a remote unauthenticated attacker to trigger a denial of service through CPU exhaustion. By forging a CMP message or a CRMF certificate request whose PBMParameter declares a very large iteration count, the verifier performs hash iterations up to about 2^31. The library enforces a ceiling only when an explicit maximum is supplied via the PKMacBuilder(IPKMacPrimitivesProvider, int) constructor; otherwise the default constructors permit any count. The resulting CPU over‑utilisation can cause the hosting process to become unresponsive or crash, compromising availability.

Affected Systems

The affected product is the Bouncy Castle C# cryptographic library (bc-csharp) from Legion of the Bouncy Castle Inc. Any deployment using a version prior to 2.7.0 is vulnerable. Users of earlier releases that employ CMP or CRMF message verification via PKMacBuilder without specifying a custom maximum are at risk.

Risk and Exploitability

The vulnerability has a CVSS score of 8.7, indicating high severity. The EPSS score is not available, but the lack of a listed KEV status suggests no known exploitation at the time of reporting. An attacker can remotely supply a crafted message to any application that processes CMP or CRMF messages using the vulnerable library, without needing authentication. The main attack vector is an unauthenticated network request that includes a PBMParameter with an extreme iteration count, leading to excessive CPU usage and service disruption.

Generated by OpenCVE AI on October 2, 2026 at 08:48 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to bc-csharp 2.7.0 or a newer release, which enforces a safe default iteration count.
  • Use the PKMacBuilder constructor that accepts a custom maximum and set a strict limit (for example, 1,048,576 iterations) when creating a verifier in legacy code.
  • Add application‑level validation or rate limiting to reject or throttle CMP or CRMF requests with unusually large iteration counts, and consider implementing circuit‑breaking logic to prevent prolonged CPU usage.

Generated by OpenCVE AI on October 2, 2026 at 08:48 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 07:15:00 +0000

Type Values Removed Values Added
Description Allocation of resources without limits or throttling in the CMP/CRMF password-based MAC verifier (PKMacBuilder) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a CMP message or CRMF certificate request whose PBMParameter declares a very large iteration count, because PKMacBuilder enforced its iteration-count ceiling only when the caller had supplied an explicit maximum through the PKMacBuilder(IPKMacPrimitivesProvider, int) constructor. With any other constructor, ProtectedPkiMessage.Verify and CertificateRequestMessage.IsValidSigningKeyPop performed as many hash iterations as the sender requested, up to about 2^31, before the MAC could be checked.
Title Unbounded CMP/CRMF password-based MAC iteration count allows CPU exhaustion
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 8.7, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-10-02T06:59:30.557Z

Reserved: 2026-07-16T23:48:46.076Z

Link: CVE-2026-63568

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-02T07:16:37.267

Modified: 2026-10-02T14:44:52.247

Link: CVE-2026-63568

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T09:00:18Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling