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 (CVE-2026-15999) arises from improper validation of the integrity check value in the AES-CCM implementation within Legion of the Bouncy Castle Inc. bc-csharp library versions before 2.7.0. Specifically, the CcmParameters class accepts any authentication tag length, including zero or lengths outside the RFC 5084 specification, and the CcmBlockCipher class only validates tag length during encryption, not decryption. This allows an attacker positioned on the network path to modify CCM-encrypted content undetected by exploiting an AlgorithmIdentifier with a CCMParameters tag length of zero or an invalid length. The flaw impacts the ParameterUtilities.GetCipherParameters method used by CmsEnvelopedData and CmsEnvelopedDataParser for AES-CCM encrypted data, as well as any decryption calls passing unchecked tag lengths to CcmBlockCipher.
Potential Impact
An on-path attacker can modify AES-CCM encrypted content without detection due to acceptance of invalid authentication tag lengths during decryption. This undermines the integrity guarantees of AES-CCM encryption in affected versions, potentially allowing undetected tampering with encrypted messages.
Mitigation Recommendations
A fix is available in Legion of the Bouncy Castle Inc. bc-csharp version 2.7.0 and later. Users should upgrade to version 2.7.0 or newer to ensure proper validation of authentication tag lengths during AES-CCM decryption. Patch status is not explicitly confirmed in the provided data, but the version boundary indicates remediation. Until upgrading, avoid using affected versions for AES-CCM encrypted data decryption or apply additional validation on tag lengths if possible.
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
Run 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 (CVE-2026-15999) arises from improper validation of the integrity check value in the AES-CCM implementation within Legion of the Bouncy Castle Inc. bc-csharp library versions before 2.7.0. Specifically, the CcmParameters class accepts any authentication tag length, including zero or lengths outside the RFC 5084 specification, and the CcmBlockCipher class only validates tag length during encryption, not decryption. This allows an attacker positioned on the network path to modify CCM-encrypted content undetected by exploiting an AlgorithmIdentifier with a CCMParameters tag length of zero or an invalid length. The flaw impacts the ParameterUtilities.GetCipherParameters method used by CmsEnvelopedData and CmsEnvelopedDataParser for AES-CCM encrypted data, as well as any decryption calls passing unchecked tag lengths to CcmBlockCipher.
Potential Impact
An on-path attacker can modify AES-CCM encrypted content without detection due to acceptance of invalid authentication tag lengths during decryption. This undermines the integrity guarantees of AES-CCM encryption in affected versions, potentially allowing undetected tampering with encrypted messages.
Mitigation Recommendations
A fix is available in Legion of the Bouncy Castle Inc. bc-csharp version 2.7.0 and later. Users should upgrade to version 2.7.0 or newer to ensure proper validation of authentication tag lengths during AES-CCM decryption. Patch status is not explicitly confirmed in the provided data, but the version boundary indicates remediation. Until upgrading, avoid using affected versions for AES-CCM encrypted data decryption or apply additional validation on tag lengths if possible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-499v-wjw6-fvpx
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-15999"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfeebca43b0b3b89e56605
Added to database: 10/02/2026, 17:49:48 UTC
Last enriched: 10/02/2026, 18:22:47 UTC
Last updated: 10/02/2026, 19:59:20 UTC
Views: 3
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.