CVE-2026-16001: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp
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.
AI Analysis
Technical Summary
The vulnerability arises because the message authentication code (MAC) key is derived directly from the key derivation output immediately following a keystream equal in length to the message. Since the derivation input depends only on a static key pair and fixed parameters, the keystream revealed by a single known plaintext encrypted message contains the MAC key for all sufficiently shorter messages. This enables an attacker to craft ciphertext and MAC tags for forged messages that will be accepted as authentic by the recipient. The issue affects bc-csharp versions from 0 up to but not including 2.7.0.
Potential Impact
An attacker who can observe one encrypted message with known plaintext can forge shorter messages that the recipient accepts as authentic. This compromises message integrity and authenticity, potentially allowing unauthorized message injection or manipulation without detection. The vulnerability does not require privileges or user interaction but does require the attacker to have observed a valid encrypted message with known plaintext. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version 2.7.0 or later of bc-csharp addresses this vulnerability. Users should upgrade to version 2.7.0 or newer to remediate this issue. Since no vendor advisory or patch link is provided, check the official Legion of the Bouncy Castle Inc. resources for the patch and further guidance. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2026-16001: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp
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.
CVSS v4.0
Score 8.2high
Affected software
Legion of the Bouncy Castle Inc.
bc-csharp
pkg:nuget/BouncyCastle.CryptographyRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the message authentication code (MAC) key is derived directly from the key derivation output immediately following a keystream equal in length to the message. Since the derivation input depends only on a static key pair and fixed parameters, the keystream revealed by a single known plaintext encrypted message contains the MAC key for all sufficiently shorter messages. This enables an attacker to craft ciphertext and MAC tags for forged messages that will be accepted as authentic by the recipient. The issue affects bc-csharp versions from 0 up to but not including 2.7.0.
Potential Impact
An attacker who can observe one encrypted message with known plaintext can forge shorter messages that the recipient accepts as authentic. This compromises message integrity and authenticity, potentially allowing unauthorized message injection or manipulation without detection. The vulnerability does not require privileges or user interaction but does require the attacker to have observed a valid encrypted message with known plaintext. There are no known exploits in the wild at this time.
Mitigation Recommendations
A fixed version 2.7.0 or later of bc-csharp addresses this vulnerability. Users should upgrade to version 2.7.0 or newer to remediate this issue. Since no vendor advisory or patch link is provided, check the official Legion of the Bouncy Castle Inc. resources for the patch and further guidance. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-07-16T23:53:44.147Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfc5e2a43b0b3b89c8de26
Added to database: 10/02/2026, 14:55:30 UTC
Last enriched: 10/02/2026, 14:56:57 UTC
Last updated: 10/02/2026, 20:45:56 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.