Improper certificate validation in the directoryName name-constraint check (PkixNameConstraintValidator.WithinDNSubtree) in Legion of the Bouncy… (CVE-2026-63577)
CVE-2026-63577 is a vulnerability in Legion of the Bouncy Castle Inc. bc-csharp before version 2.7.0 involving improper certificate validation. The flaw occurs in the directoryName name-constraint check within the PkixNameConstraintValidator.WithinDNSubtree function. It allows an attacker controlling or having certificates issued by a name-constrained intermediate CA to bypass PKIX path validation by crafting subject distinguished names or directoryName subjectAltNames that lie outside the permitted subtrees. This happens because the validation incorrectly searches for the constraint's first RDN anywhere in the name rather than requiring it as an initial prefix, violating RFC 5280 requirements. No patch or remediation information is provided. The vulnerability is rated high severity based on the described impact.
AI Analysis
Technical Summary
The vulnerability in Legion of the Bouncy Castle Inc. bc-csharp (before 2.7.0) arises from improper validation of certificate name constraints in the directoryName field during PKIX path validation. Specifically, the PkixNameConstraintValidator.WithinDNSubtree method incorrectly checks the directoryName name-constraint by locating the first Relative Distinguished Name (RDN) of the constraint anywhere within the subject name and then comparing subsequent RDNs from that point. This approach violates RFC 5280 sections 4.2.1.10 and 7.1, which require the constraint to be an initial prefix of the name. Consequently, an attacker who controls or can obtain certificates from a name-constrained intermediate CA can present certificates with subject distinguished names or directoryName subjectAltNames outside the allowed subtrees, bypassing intended restrictions and potentially undermining trust in the certificate chain.
Potential Impact
An attacker with control over or the ability to obtain certificates from a name-constrained intermediate CA can issue certificates that appear valid under PKIX path validation despite having subject names outside the permitted subtrees. This undermines the security guarantees of name constraints, potentially allowing unauthorized certificate issuance and trust bypass in systems relying on bc-csharp for certificate validation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should be cautious when validating certificates using affected versions of bc-csharp and consider additional validation controls if feasible.
Improper certificate validation in the directoryName name-constraint check (PkixNameConstraintValidator.WithinDNSubtree) in Legion of the Bouncy… (CVE-2026-63577)
Description
CVE-2026-63577 is a vulnerability in Legion of the Bouncy Castle Inc. bc-csharp before version 2.7.0 involving improper certificate validation. The flaw occurs in the directoryName name-constraint check within the PkixNameConstraintValidator.WithinDNSubtree function. It allows an attacker controlling or having certificates issued by a name-constrained intermediate CA to bypass PKIX path validation by crafting subject distinguished names or directoryName subjectAltNames that lie outside the permitted subtrees. This happens because the validation incorrectly searches for the constraint's first RDN anywhere in the name rather than requiring it as an initial prefix, violating RFC 5280 requirements. No patch or remediation information is provided. The vulnerability is rated high severity based on the described impact.
CVSS v4.0
Affected software
Run 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 in Legion of the Bouncy Castle Inc. bc-csharp (before 2.7.0) arises from improper validation of certificate name constraints in the directoryName field during PKIX path validation. Specifically, the PkixNameConstraintValidator.WithinDNSubtree method incorrectly checks the directoryName name-constraint by locating the first Relative Distinguished Name (RDN) of the constraint anywhere within the subject name and then comparing subsequent RDNs from that point. This approach violates RFC 5280 sections 4.2.1.10 and 7.1, which require the constraint to be an initial prefix of the name. Consequently, an attacker who controls or can obtain certificates from a name-constrained intermediate CA can present certificates with subject distinguished names or directoryName subjectAltNames outside the allowed subtrees, bypassing intended restrictions and potentially undermining trust in the certificate chain.
Potential Impact
An attacker with control over or the ability to obtain certificates from a name-constrained intermediate CA can issue certificates that appear valid under PKIX path validation despite having subject names outside the permitted subtrees. This undermines the security guarantees of name constraints, potentially allowing unauthorized certificate issuance and trust bypass in systems relying on bc-csharp for certificate validation.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should be cautious when validating certificates using affected versions of bc-csharp and consider additional validation controls if feasible.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-437r-hr8h-5f45
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-63577"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abfeeb5a43b0b3b89e55f87
Added to database: 10/02/2026, 17:49:41 UTC
Last enriched: 10/02/2026, 18:20:31 UTC
Last updated: 10/02/2026, 19:45:56 UTC
Views: 3
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.