Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-63571 Overview
CVE-2026-63571 is an improper cryptographic signature verification flaw [CWE-347] in the Legion of the Bouncy Castle bc-csharp library before version 2.7.0. The PkixAttrCertPathValidator class, also used by PkixAttrCertPathBuilder, performs the RFC 3281 validation steps for X.509 attribute certificates but never verifies the attribute certificate's signature against the issuer's public key. A remote attacker can present a forged attribute certificate that names a trusted attribute authority as its issuer and have it accepted as valid. Applications relying on these classes for role or privilege decisions may grant unauthorized attributes to attacker-controlled identities.
Critical Impact
Forged X.509 attribute certificates are accepted as valid, allowing remote attackers to obtain roles or privileges that applications assign based on attribute certificate claims.
Affected Products
- Legion of the Bouncy Castle bc-csharp versions prior to 2.7.0
- .NET applications using PkixAttrCertPathValidator for attribute certificate validation
- .NET applications using PkixAttrCertPathBuilder for attribute certificate path construction
Discovery Timeline
- 2026-10-02 - CVE-2026-63571 published to NVD
- 2026-10-02 - Last updated in NVD database
Technical Details for CVE-2026-63571
Vulnerability Analysis
The vulnerability resides in the attribute certificate (AC) validation routine implemented in PkixAttrCertPathValidator.cs. RFC 3281 defines a validation sequence that checks the holder and issuer certification paths, validity period, extensions, and revocation status. The bc-csharp implementation executed these checks correctly but omitted the step that verifies the attribute certificate's signature using the issuer's public key.
An attacker can craft an attribute certificate that declares a legitimate trusted attribute authority as its issuer. Because the signature is never cryptographically verified, the validator returns a successful result even when the AC was signed by an untrusted key or not signed at all. The consequence is that any claim encoded in the AC, such as role assertions, group memberships, or capability attributes, is accepted as authentic.
Root Cause
The root cause is a missing call to the signature verification step in the attribute certificate validation pipeline. The pre-patch code invoked ProcessAttrCert2, which built and validated the issuer certification path but did not execute the AC signature check against the issuer certificate's public key. This maps to [CWE-347]: Improper Verification of Cryptographic Signature.
Attack Vector
Exploitation requires no authentication, no user interaction, and is executed over the network. An attacker submits a forged X.509 attribute certificate to an application that uses the vulnerable classes to validate ACs. The application then grants whatever attribute-based roles or privileges the forged AC claims.
// Patch to crypto/src/pkix/PkixAttrCertPathValidator.cs
var attrCert = attrCertSelector.AttributeCert;
PkixCertPath holderCertPath = Rfc3281CertPathUtilities.ProcessAttrCert1(attrCert, pkixParams);
- PkixCertPathValidatorResult result = Rfc3281CertPathUtilities.ProcessAttrCert2(certPath, pkixParams);
+ PkixCertPathValidatorResult result = Rfc3281CertPathUtilities.ProcessAttrCert2A(certPath, pkixParams);
X509Certificate issuerCert = (X509Certificate)certPath.Certificates[0];
+ Rfc3281CertPathUtilities.ProcessAttrCert2B(attrCert, issuerCert);
Rfc3281CertPathUtilities.ProcessAttrCert3(issuerCert, pkixParams);
Rfc3281CertPathUtilities.ProcessAttrCert4(issuerCert, pkixParams);
Rfc3281CertPathUtilities.ProcessAttrCert5(attrCert, validityDate);
Source: Bouncy Castle bc-csharp commit c08f65e. The patch renames ProcessAttrCert2 to ProcessAttrCert2A and adds a new ProcessAttrCert2B call that performs the previously missing signature verification against the issuer certificate.
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-63571
Indicators of Compromise
- Application authorization events that grant elevated roles based on attribute certificates from unexpected or newly observed holders.
- Attribute certificates presented to the application whose signatures fail verification when checked out-of-band against the claimed issuer's public key.
- Successful authentication or authorization flows that reference attribute authorities not configured as trust anchors.
Detection Strategies
- Perform a dependency inventory to identify .NET applications linking BouncyCastle.Cryptography or bc-csharp at versions below 2.7.0.
- Review application code for direct use of PkixAttrCertPathValidator or PkixAttrCertPathBuilder and flag call sites for remediation.
- Add logging to AC validation code paths to capture issuer identity, holder identity, and the result of path validation for audit review.
Monitoring Recommendations
- Monitor privilege escalation events tied to attribute-based access control decisions and correlate them with the identity of the presenting principal.
- Alert on repeated AC validation attempts from the same source that reference high-privilege roles or attributes.
- Track software bill of materials (SBOM) changes to confirm bc-csharp has been upgraded across all affected services.
How to Mitigate CVE-2026-63571
Immediate Actions Required
- Upgrade bc-csharp to version 2.7.0 or later in all .NET applications that validate X.509 attribute certificates.
- Audit application code that invokes PkixAttrCertPathValidator or PkixAttrCertPathBuilder and confirm the upgraded library is loaded at runtime.
- Revoke any privileges or sessions that may have been granted based on unverified attribute certificates during the exposure window.
Patch Information
The fix is included in bc-csharp 2.7.0. The upstream commit is c08f65e1ed7b92a10776220ed9c047f47c264725, which modifies PkixAttrCertPathValidator.cs and Rfc3281CertPathUtilities.cs to invoke ProcessAttrCert2B and verify the attribute certificate signature with the issuer's public key. Advisory details are available on the Bouncy Castle wiki entry for CVE-2026-63571.
Workarounds
- If upgrading immediately is not feasible, add an application-level signature verification step that validates the AC signature against the issuer certificate's public key before trusting any attribute claim.
- Restrict the set of trusted attribute authorities to the minimum required, and reject attribute certificates from any issuer outside that set.
- Disable attribute-certificate-based authorization paths where feasible until the library is patched.
# Upgrade Bouncy Castle bc-csharp via NuGet
dotnet add package BouncyCastle.Cryptography --version 2.7.0
# Verify the installed version
dotnet list package | grep -i BouncyCastle
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

