CVE-2026-103601: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp
Release of unverified plaintext in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker to obtain decryptions of ciphertexts of their choosing via forged messages sent to an application that lets the output buffer of a failed decryption be observed, for example through buffer reuse or logging, because decryption wrote the recovered plaintext into the caller-supplied output buffer before checking the authentication tag and left it there when the check failed. Only decryption into a caller-supplied buffer is affected; methods that return a newly allocated array are not.
AI Analysis
Technical Summary
This vulnerability arises from the improper validation of the authentication tag in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in bc-csharp versions prior to 2.7.0. During decryption into a caller-supplied buffer, the plaintext is written before the authentication tag check, and if the tag verification fails, the plaintext remains in the buffer. This behavior can allow a remote attacker to obtain decryptions of chosen ciphertexts by sending forged messages to an application that exposes the output buffer, for example, through buffer reuse or logging. The issue does not affect methods that return newly allocated arrays for decrypted output.
Potential Impact
An attacker can obtain decrypted plaintext of ciphertexts of their choosing by exploiting the premature release of unverified plaintext in the affected decryption methods. This can lead to information disclosure without requiring authentication or user interaction. The vulnerability affects confidentiality and could compromise sensitive data processed by applications using the vulnerable bc-csharp versions.
Mitigation Recommendations
Upgrade to bc-csharp version 2.7.0 or later, where this issue is fixed. Avoid using decryption methods that write into caller-supplied buffers in affected versions. Since the vulnerability is fixed in version 2.7.0, applying this official update is the recommended remediation. Patch status is confirmed by the versioning information indicating the fix in 2.7.0.
CVE-2026-103601: CWE-354 Improper Validation of Integrity Check Value in Legion of the Bouncy Castle Inc. bc-csharp
Description
Release of unverified plaintext in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker to obtain decryptions of ciphertexts of their choosing via forged messages sent to an application that lets the output buffer of a failed decryption be observed, for example through buffer reuse or logging, because decryption wrote the recovered plaintext into the caller-supplied output buffer before checking the authentication tag and left it there when the check failed. Only decryption into a caller-supplied buffer is affected; methods that return a newly allocated array are not.
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
This vulnerability arises from the improper validation of the authentication tag in the CCM (CcmBlockCipher) and DSTU 7624 CCM (KCcmBlockCipher) AEAD modes in bc-csharp versions prior to 2.7.0. During decryption into a caller-supplied buffer, the plaintext is written before the authentication tag check, and if the tag verification fails, the plaintext remains in the buffer. This behavior can allow a remote attacker to obtain decryptions of chosen ciphertexts by sending forged messages to an application that exposes the output buffer, for example, through buffer reuse or logging. The issue does not affect methods that return newly allocated arrays for decrypted output.
Potential Impact
An attacker can obtain decrypted plaintext of ciphertexts of their choosing by exploiting the premature release of unverified plaintext in the affected decryption methods. This can lead to information disclosure without requiring authentication or user interaction. The vulnerability affects confidentiality and could compromise sensitive data processed by applications using the vulnerable bc-csharp versions.
Mitigation Recommendations
Upgrade to bc-csharp version 2.7.0 or later, where this issue is fixed. Avoid using decryption methods that write into caller-supplied buffers in affected versions. Since the vulnerability is fixed in version 2.7.0, applying this official update is the recommended remediation. Patch status is confirmed by the versioning information indicating the fix in 2.7.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-09-30T23:01:10.053Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abf5de5a43b0b3b8988e874
Added to database: 10/02/2026, 07:31:49 UTC
Last enriched: 10/02/2026, 07:47:07 UTC
Last updated: 10/02/2026, 18:46:41 UTC
Views: 11
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.