Description
Release of unverified plaintext in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker to obtain decryptions of ciphertexts of their choosing via forged messages sent to an application that lets the output buffer of a failed decryption be observed, for example through buffer reuse or logging, because decryption wrote the recovered plaintext into the caller-supplied output buffer before checking the authentication tag and left it there when the check failed. Only decryption into a caller-supplied buffer is affected; methods that return a newly allocated array are not.
Published: 2026-10-02
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Data Exposure via Unverified Plaintext
Action: Apply Patch
AI Analysis

Impact

A failure to verify the authentication tag in CCM and DSTU 7624 CCM modes leaves plaintext in a caller‑supplied buffer when the tag check fails. This data is written back to the caller before the failure is detected, allowing an attacker who can inject forged ciphertexts to read the unverified plaintext. The flaw is an input validation weakness (CWE‑354). The effect is disclosure of confidential data to anyone who can observe the output buffer, for example through logging or buffer reuse, but it does not alter system integrity or enable arbitrary code execution.

Affected Systems

The vulnerability affects Legion of the Bouncy Castle Inc.’s bc‑csharp library. Any project using bc‑csharp prior to version 2.7.0 that performs decryption by supplying its own output buffer is susceptible. Versions 2.7.0 and later contain a fix that defers plaintext output until after tag verification or removes the vulnerable path.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity. EPSS data is not available, so exploitation probability is unknown, and the vulnerability is not currently listed in CISA KEV. Based on the description, the likely attack vector is a remote attacker sending crafted ciphertexts to an application that exposes the failed decryption output buffer, for example via logging, buffer reuse, or debugging interfaces. Attacks would that buffer and do not perform additional integrity checks.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the bc‑csharp library to version 2.7.0 or later, which includes the fix.
  • Use decryption methods that allocate new buffers for output instead of passing caller‑supplied buffers, or otherwise implement checks to ensure the output buffer is not exposed after a failed authentication check.
  • Verify that the application does not log or otherwise expose decryption output buffers, and ensure that failed decryption results are not returned to callers.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 04 Oct 2026 22: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

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 07:30:00 +0000

Type Values Removed Values Added
Description Release of unverified plaintext in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker to obtain decryptions of ciphertexts of their choosing via forged messages sent to an application that lets the output buffer of a failed decryption be observed, for example through buffer reuse or logging, because decryption wrote the recovered plaintext into the caller-supplied output buffer before checking the authentication tag and left it there when the check failed. Only decryption into a caller-supplied buffer is affected; methods that return a newly allocated array are not.
Title CcmBlockCipher and KCcmBlockCipher leave unverified plaintext in the output buffer after a failed tag check
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:H/VI:N/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-02T17:52:45.900Z

Reserved: 2026-09-30T23:01:10.053Z

Link: CVE-2026-103601

cve-icon Vulnrichment

Updated: 2026-10-02T17:50:15.737Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-02T08:17:00.527

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

Link: CVE-2026-103601

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-04T20:55:18Z

Weaknesses
  • CWE-354

    Improper Validation of Integrity Check Value