Skip to main content

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

0
High
VulnerabilityCVE-2026-15999cvecve-2026-15999cwe-354
Published: 10/02/2026 (10/02/2026, 06:52:16 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: bc-csharp

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.

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:50 UTC

Technical Analysis

The vulnerability arises because CcmParameters accepted any authentication tag length, including zero or lengths outside the RFC 5084 specification, and CcmBlockCipher only validated the tag length during encryption, not decryption. Consequently, during decryption, a zero-length or very short tag could be accepted, allowing an on-path attacker to alter encrypted content undetected. Affected code paths include ParameterUtilities.GetCipherParameters, CmsEnvelopedData, and CmsEnvelopedDataParser when handling AES-CCM encrypted data. This flaw exists in bc-csharp versions from 0 up to but not including 2.7.0.

Potential Impact

An attacker positioned on the communication path can modify AES-CCM encrypted content without detection due to improper integrity check validation. This undermines the authenticity and integrity guarantees of the encryption scheme, potentially leading to data tampering without alerting the recipient. There is no indication of active exploitation in the wild at this time.

Mitigation Recommendations

Upgrade to bc-csharp version 2.7.0 or later where this issue is fixed. Since the vulnerability is resolved in version 2.7.0, users should apply this official fix to prevent exploitation. No additional mitigations are specified or required beyond applying the patch.

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:17.500Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abfc5e2a43b0b3b89c8de24

Added to database: 10/02/2026, 14:55:30 UTC

Last enriched: 10/02/2026, 14:56:50 UTC

Last updated: 10/02/2026, 21:45:56 UTC

Views: 6

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