Skip to main content

CVE-2026-16001: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp

0
High
VulnerabilityCVE-2026-16001cvecve-2026-16001cwe-354
Published: 10/02/2026 (10/02/2026, 06:55:36 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Legion of the Bouncy Castle Inc.

bc-csharp

Affected versions
>=0 <2.7.0
BouncyCastle.Cryptography
pkg:nuget/BouncyCastle.Cryptography
Affected versions
>=0 <2.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 14:56:57 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses