Description
Improper validation of integrity check value in the AES-CCM implementation (CcmParameters and CcmBlockCipher) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an on-path attacker to modify CCM-encrypted content without detection via an AlgorithmIdentifier whose CCMParameters declare an authentication tag (aes-ICVlen) of zero or another length outside the RFC 5084 set, because CcmParameters accepted any value and CcmBlockCipher validated the tag length only when encrypting, so decryption compared a zero-length or very short tag. Affected paths include ParameterUtilities.GetCipherParameters, used by CmsEnvelopedData and CmsEnvelopedDataParser for EnvelopedData encrypted with AES-CCM, and any caller passing an unchecked tag length to CcmBlockCipher for decryption.
Published: 2026-10-02
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Bypass authentication enabling tampering of CCM‑encrypted data
Action: Patch immediately
AI Analysis

Impact

The vulnerability stems from improper validation of the integrity check value in the AES‑CCM implementation of the Bouncy Castle bc‑csharp library. The CcmParameters object accepts any tag length, and the CcmBlockCipher verifies the length only during encryption. Consequently, a decryption routine may compare a zero‑length or a very short authentication tag, allowing an attacker to modify the ciphertext without detection. This flaw can be exploited by an on‑path attacker to silently alter data that is presumed protected by CCM.

Affected Systems

Software affected is Legion of the Bouncy Castle Inc. bc‑csharp prior to version 2.7.0. The flaw exists in the classes CcmParameters and CcmBlockCipher and is exercised by common cryptographic helpers such as ParameterUtilities.GetCipherParameters, CmsEnvelopedData, and CmsEnvelopedDataParser when they process AES‑CCM‑protected EnvelopedData.

Risk and Exploitability

The vulnerability has a CVSS score of 8.2, which is considered high severity. EPSS data is not available and the issue is not listed in CISA’s KEV catalog, so the known exploitation probability cannot be quantified. An attacker who can position themselves on the network path can supply a CCMParameters instance with an out‑of‑range tag length and modify the ciphertext, with the decryption routine failing to detect the tampering. The lack of authentication integrity means the attacker can potentially achieve confidentiality and integrity compromise of the protected data.

Generated by OpenCVE AI on October 2, 2026 at 09:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a patched or upgraded version of bc‑csharp 2.7.0 or newer that contains validated tag length checks in CcmParameters and CcmBlockCipher.
  • If upgrading is not possible immediately, replace or modify any code that constructs CcmParameters or invokes CcmBlockCipher so that it verifies tag length against RFC 5084 before decryption; alternatively, avoid using AES‑CCM with the older library.
  • Review all cryptographic configurations that use AES‑CCM to ensure that the authentication tag length is strictly enforced, and audit recent records for data tampering that might have gone undetected due to this flaw.

Generated by OpenCVE AI on October 2, 2026 at 09:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 03 Oct 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


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

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-csharp
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-csharp

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

Type Values Removed Values Added
Description Improper validation of integrity check value in the AES-CCM implementation (CcmParameters and CcmBlockCipher) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an on-path attacker to modify CCM-encrypted content without detection via an AlgorithmIdentifier whose CCMParameters declare an authentication tag (aes-ICVlen) of zero or another length outside the RFC 5084 set, because CcmParameters accepted any value and CcmBlockCipher validated the tag length only when encrypting, so decryption compared a zero-length or very short tag. Affected paths include ParameterUtilities.GetCipherParameters, used by CmsEnvelopedData and CmsEnvelopedDataParser for EnvelopedData encrypted with AES-CCM, and any caller passing an unchecked tag length to CcmBlockCipher for decryption.
Title AES-CCM decryption accepts zero or out-of-range tag length, bypassing authentication
Weaknesses CWE-354
References
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-csharp
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-10-02T18:02:14.715Z

Reserved: 2026-07-16T23:53:17.500Z

Link: CVE-2026-15999

cve-icon Vulnrichment

Updated: 2026-10-02T18:02:08.518Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-02T18:17:02.857

Link: CVE-2026-15999

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T14:46:20Z

Weaknesses
  • CWE-354

    Improper Validation of Integrity Check Value