CVE-2026-63567: CWE-203 Observable Discrepancy in Legion of the Bouncy Castle Inc. bc-csharp
Observable discrepancy in IesEngine.DecryptBlock in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker who has captured an IES or ECIES ciphertext, and who can submit modified ciphertexts for decryption under the same key pair, to recover its plaintext via a CBC padding-oracle attack, because in block-cipher mode the engine decrypts the ciphertext and removes its padding before verifying the MAC. A padding failure is therefore reported with a different error message, and without the MAC computation, compared with a MAC failure. Only applications that construct IesEngine directly with a padded block cipher, such as AES in CBC mode with PKCS#7 padding, are affected; stream-mode IES is not.
AI Analysis
Technical Summary
The vulnerability CVE-2026-63567 affects the IesEngine.DecryptBlock implementation in bc-csharp versions before 2.7.0. When IesEngine is constructed with a padded block cipher (e.g., AES-CBC with PKCS#7 padding), the engine decrypts ciphertext and removes padding prior to MAC verification. This leads to different error messages for padding errors compared to MAC errors, enabling a padding-oracle attack. An attacker who has captured an IES or ECIES ciphertext and can submit modified ciphertexts for decryption under the same key pair can exploit this to recover plaintext. Applications using stream-mode IES are not vulnerable.
Potential Impact
An attacker with the ability to submit modified ciphertexts for decryption under the same key pair can exploit this vulnerability to recover plaintext from encrypted messages via a CBC padding-oracle attack. This compromises the confidentiality of encrypted data processed by vulnerable versions of bc-csharp when using padded block ciphers in IesEngine. There is no indication of privilege escalation or denial of service impacts.
Mitigation Recommendations
A fixed version 2.7.0 or later of bc-csharp addresses this vulnerability. Users should upgrade to version 2.7.0 or newer to mitigate this issue. If upgrading is not immediately possible, avoid constructing IesEngine directly with padded block ciphers such as AES in CBC mode with PKCS#7 padding. Use stream-mode IES instead, which is not affected by this vulnerability. Patch status is confirmed by the affectedVersions field indicating versions before 2.7.0 are vulnerable.
CVE-2026-63567: CWE-203 Observable Discrepancy in Legion of the Bouncy Castle Inc. bc-csharp
Description
Observable discrepancy in IesEngine.DecryptBlock in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker who has captured an IES or ECIES ciphertext, and who can submit modified ciphertexts for decryption under the same key pair, to recover its plaintext via a CBC padding-oracle attack, because in block-cipher mode the engine decrypts the ciphertext and removes its padding before verifying the MAC. A padding failure is therefore reported with a different error message, and without the MAC computation, compared with a MAC failure. Only applications that construct IesEngine directly with a padded block cipher, such as AES in CBC mode with PKCS#7 padding, are affected; stream-mode IES is 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
The vulnerability CVE-2026-63567 affects the IesEngine.DecryptBlock implementation in bc-csharp versions before 2.7.0. When IesEngine is constructed with a padded block cipher (e.g., AES-CBC with PKCS#7 padding), the engine decrypts ciphertext and removes padding prior to MAC verification. This leads to different error messages for padding errors compared to MAC errors, enabling a padding-oracle attack. An attacker who has captured an IES or ECIES ciphertext and can submit modified ciphertexts for decryption under the same key pair can exploit this to recover plaintext. Applications using stream-mode IES are not vulnerable.
Potential Impact
An attacker with the ability to submit modified ciphertexts for decryption under the same key pair can exploit this vulnerability to recover plaintext from encrypted messages via a CBC padding-oracle attack. This compromises the confidentiality of encrypted data processed by vulnerable versions of bc-csharp when using padded block ciphers in IesEngine. There is no indication of privilege escalation or denial of service impacts.
Mitigation Recommendations
A fixed version 2.7.0 or later of bc-csharp addresses this vulnerability. Users should upgrade to version 2.7.0 or newer to mitigate this issue. If upgrading is not immediately possible, avoid constructing IesEngine directly with padded block ciphers such as AES in CBC mode with PKCS#7 padding. Use stream-mode IES instead, which is not affected by this vulnerability. Patch status is confirmed by the affectedVersions field indicating versions before 2.7.0 are vulnerable.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-07-16T23:48:46.076Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfc5e2a43b0b3b89c8de28
Added to database: 10/02/2026, 14:55:30 UTC
Last enriched: 10/02/2026, 14:57:05 UTC
Last updated: 10/03/2026, 04:45:56 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.