CVE-2026-63572: Unbounded MAC and bag-decryption iteration counts when loading PKCS#12 files

Published Oct 2, 2026
·
Updated

Allocation of resources without limits in PKCS#12 keystore loading (Pkcs12Store.Load) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file to cause a denial of service through CPU exhaustion via an iteration count close to 2^31 in the file's MacData or in the PBE parameters of an encrypted SafeContents or shrouded key bag, because the counts are taken from the file without an upper bound and the key derivation runs before the MAC or the password can be checked. A zero or negative count is covered by CVE-2026-63575. Pkcs12Utilities.ConvertToDefiniteLength is also affected.

Affected Software

2 affected components
Legion of the Bouncy Castle Inc. bc-csharp<2.7.0
bouncycastle bc-csharp<2.7.0

Event History

Oct 2, 2026
CVE Published
via MITRE·07:04 AM
Data Sourced
via MITRE·07:04 AM
DescriptionWeakness
Data Sourced
via OSV·07:04 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 denial-of-service issue?

Deployments using bc-csharp before 2.7.0 are exposed if they load PKCS#12/PFX files through Pkcs12Store.Load or process them with Pkcs12Utilities.ConvertToDefiniteLength. Exploitation requires an attacker to be able to supply the PKCS#12 file.

2

Does an attacker need the PKCS#12 password or a valid MAC to trigger the issue?

No. The affected key-derivation work occurs before the MAC or password can be checked, so a malicious file can cause CPU exhaustion without first passing those checks.

3

What malicious file property causes the CPU exhaustion?

A PKCS#12 file can specify an iteration count close to 2^31 in MacData or in PBE parameters for encrypted SafeContents or a shrouded key bag. The affected code accepts these file-provided counts without an upper bound.

4

What can be done while an upgrade is pending?

Do not allow untrusted parties to supply PKCS#12/PFX files to affected loading or conversion paths. Restrict processing to files from trusted sources until bc-csharp is upgraded to 2.7.0 or later.

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