Skip to main content
EPSS 0.5%top 62%

CVE-2026-63567: CWE-203 Observable Discrepancy in Legion of the Bouncy Castle Inc. bc-csharp

0
High
VulnerabilityCVE-2026-63567cvecve-2026-63567cwe-203
Published: 10/02/2026 (10/02/2026, 06:58:32 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
None
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:H/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

Legion of the Bouncy Castle Inc.

bc-csharp

Affected versions
>=0 <2.7.0
BouncyCastle.Cryptography
pkg:nuget/BouncyCastle.Cryptography
Affected versions
>=0 <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, 14:57:05 UTC

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.

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

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