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
Published: 10/02/2026 (10/02/2026, 06:52:16 UTC)
Source: GCVE Database
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

GitHub Actionsmore threats →ai
bcgit/bc-csharp
pkg:github/bcgit/bc-csharp
Affected versions
<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, 18:22:47 UTC

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.

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

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 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