Skip to main content

Improper certificate validation in the directoryName name-constraint check (PkixNameConstraintValidator.WithinDNSubtree) in Legion of the Bouncy… (CVE-2026-63577)

0
High
Published: 10/02/2026 (10/02/2026, 09:31:20 UTC)
Source: GCVE Database

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

bc-csharp
pkg:nuget/bc-csharp
Affected versions
<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, 18:20:31 UTC

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.

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

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