CVE-2026-15999: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp
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.
AI Analysis
Technical Summary
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.
CVE-2026-15999: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. 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
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 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.
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 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.