Description
Exposure of the message authentication key through the encryption keystream in the stream mode of IesEngine (an IesEngine constructed without a block cipher) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker who has observed one encrypted message with known plaintext to forge shorter messages of their choosing that the recipient accepts as authentic, via a crafted ciphertext and MAC tag, because the MAC key was taken from the key derivation output directly after a keystream as long as the message, while the derivation input depends only on the static key pair and fixed parameters. The keystream revealed by that one message therefore contains the MAC key for every sufficiently shorter message.
Published: 2026-10-02
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Message Authentication Key Exposure enabling forgery
Action: Patch
AI Analysis

Impact

The vulnerability lies in the IesEngine stream mode of the Legion of the Bouncy Castle Inc. bc‑csharp library when instantiated without a block cipher. During key derivation the MAC key is taken directly from the keystream that is also used for encryption. When an attacker observes one encrypted message with known plaintext, they learn the keystream for that message. Because the derivation input is static, the same keystream segment contains the MAC key for any message shorter than the original. The attacker can then craft a ciphertext and MAC tag for arbitrary short messages that the recipient will accept as authentic. This results in loss of integrity and authenticity for encrypted communications, allowing data tampering or injection.

Affected Systems

Vendors: Legion of the Bouncy Castle Inc.; Product: bc‑csharp, versions prior to 2.7.0 are affected.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity. EPSS information is not available, so the exploitation probability is not quantified, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is remote, based on passive or active network observation of a single encrypted message that the attacker can then use to forge shorter messages. The described path requires the attacker to obtain one ciphertext‑plaintext pair and to be able to inject forged messages into the target system. No additional credentials or privileged access are required, making exploitation straightforward for an attacker who can observe traffic.

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

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the bc‑csharp library to version 2.7.0 or later, which removes the keystream leak in IesEngine's stream mode.
  • If upgrading is not immediately feasible, configure the application to avoid using IesEngine in stream mode without a block cipher, or replace it with a mode that properly separates authentication and encryption keys.
  • Apply monitoring to detect unexpected message forging, verifying that MAC tags are generated by the intended key derivation logic.

Generated by OpenCVE AI on October 2, 2026 at 09:12 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 Exposure of the message authentication key through the encryption keystream in the stream mode of IesEngine (an IesEngine constructed without a block cipher) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker who has observed one encrypted message with known plaintext to forge shorter messages of their choosing that the recipient accepts as authentic, via a crafted ciphertext and MAC tag, because the MAC key was taken from the key derivation output directly after a keystream as long as the message, while the derivation input depends only on the static key pair and fixed parameters. The keystream revealed by that one message therefore contains the MAC key for every sufficiently shorter message.
Title IesEngine stream-mode MAC forgery via length-dependent KDF split
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-02T17:55:04.562Z

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

Link: CVE-2026-16001

cve-icon Vulnrichment

Updated: 2026-10-02T17:54:56.003Z

cve-icon NVD

Status : Awaiting Analysis

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

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

Link: CVE-2026-16001

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

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

Weaknesses
  • CWE-354

    Improper Validation of Integrity Check Value