CVE-2026-63573: Bleichenbacher padding oracle in CMS RSA PKCS#1 v1.5 key-transport unwrap

Published Oct 2, 2026
·
Updated

Observable discrepancy in the CMS RSA PKCS#1 v1.5 key-transport unwrap (KeyTransRecipientInformation.UnwrapKey) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote attacker who holds a captured CMS EnvelopedData message, and who can submit many modified messages to an application that decrypts them with the recipient's RSA private key and reveals how decryption failed, to recover the captured message's content-encryption key and so its content, via a Bleichenbacher-style adaptive chosen-ciphertext attack, because a key-transport ciphertext with invalid PKCS#1 v1.5 padding is rejected during unwrap with a distinct "bad padding in message." CmsException instead of being replaced by a random key, so it can be told apart from a correctly padded ciphertext, which fails only later at content decryption.

Affected Software

2 affected components
Bouncy Castle bc-csharp<2.7.0
bouncycastle bc-csharp<2.7.0

Event History

Oct 2, 2026
CVE Published
via MITRE·07:05 AM
Data Sourced
via MITRE·07:05 AM
DescriptionWeakness
Data Sourced
via OSV·07:05 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 AM
RemedyAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this attack?

Deployments using bc-csharp before 2.7.0 to decrypt CMS EnvelopedData with RSA PKCS#1 v1.5 key transport are exposed if they reveal whether failure occurred during key unwrap or later during content decryption.

2

What does an attacker need to exploit the issue?

The attacker needs a captured CMS EnvelopedData message and the ability to submit many modified versions of that message to an application that decrypts them using the recipient's RSA private key. The application must expose distinguishable failure behavior, including the distinct bad-padding exception from key unwrap.

3

What information can be recovered if exploitation succeeds?

A successful adaptive chosen-ciphertext attack can recover the captured message's content-encryption key. The attacker can then decrypt that message's content.

4

What is the remediation?

Upgrade bc-csharp to version 2.7.0 or later. The affected behavior is present in versions before 2.7.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203