CVE-2026-103602: CWE-295 Improper Certificate Validation in Legion of the Bouncy Castle Inc. bc-csharp
Improper certificate validation in PkixNameConstraintValidator in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who controls, or can obtain certificates from, a name-constrained intermediate CA to have certificates accepted during PKIX certification path validation for email addresses, DNS names or URI hosts that lie within excluded subtrees applying to that CA, via an rfc822Name, dNSName or uniformResourceIdentifier name whose host ends with a dot, because names and constraints were compared without first removing the RFC 1034 root-label trailing dot, so a fully qualified host name did not match an excluded subtree for the same host written without the dot.
AI Analysis
Technical Summary
The vulnerability in bc-csharp before 2.7.0 stems from improper handling of trailing dots in RFC 1034 fully qualified domain names during PKIX certification path validation. Specifically, the PkixNameConstraintValidator does not remove the trailing dot from rfc822Name, dNSName, or uniformResourceIdentifier names before comparing them against excluded subtrees defined by a name-constrained intermediate CA. This allows certificates with names ending in a dot to be accepted even if they should be excluded, potentially enabling an attacker with control over such a CA to issue certificates that bypass intended name constraints.
Potential Impact
An attacker who controls or can obtain certificates from a name-constrained intermediate CA can have certificates accepted during PKIX certification path validation for names that should be excluded by name constraints. This undermines the trust model of certificate validation for email addresses, DNS names, and URI hosts, potentially allowing unauthorized certificates to be trusted.
Mitigation Recommendations
A fix is available in bc-csharp version 2.7.0. Users should upgrade to version 2.7.0 or later to remediate this vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes.
CVE-2026-103602: CWE-295 Improper Certificate Validation in Legion of the Bouncy Castle Inc. bc-csharp
Description
Improper certificate validation in PkixNameConstraintValidator in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who controls, or can obtain certificates from, a name-constrained intermediate CA to have certificates accepted during PKIX certification path validation for email addresses, DNS names or URI hosts that lie within excluded subtrees applying to that CA, via an rfc822Name, dNSName or uniformResourceIdentifier name whose host ends with a dot, because names and constraints were compared without first removing the RFC 1034 root-label trailing dot, so a fully qualified host name did not match an excluded subtree for the same host written without the dot.
CVSS v4.0
Score 8.2high
Affected software
Legion of the Bouncy Castle Inc.
bc-csharp
pkg:nuget/BouncyCastle.CryptographyRun 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 bc-csharp before 2.7.0 stems from improper handling of trailing dots in RFC 1034 fully qualified domain names during PKIX certification path validation. Specifically, the PkixNameConstraintValidator does not remove the trailing dot from rfc822Name, dNSName, or uniformResourceIdentifier names before comparing them against excluded subtrees defined by a name-constrained intermediate CA. This allows certificates with names ending in a dot to be accepted even if they should be excluded, potentially enabling an attacker with control over such a CA to issue certificates that bypass intended name constraints.
Potential Impact
An attacker who controls or can obtain certificates from a name-constrained intermediate CA can have certificates accepted during PKIX certification path validation for names that should be excluded by name constraints. This undermines the trust model of certificate validation for email addresses, DNS names, and URI hosts, potentially allowing unauthorized certificates to be trusted.
Mitigation Recommendations
A fix is available in bc-csharp version 2.7.0. Users should upgrade to version 2.7.0 or later to remediate this vulnerability. No vendor advisory content is provided to indicate alternative mitigations or temporary fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-09-30T23:01:10.053Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6abf5de5a43b0b3b8988e875
Added to database: 10/02/2026, 07:31:49 UTC
Last enriched: 10/02/2026, 07:47:03 UTC
Last updated: 10/02/2026, 20:45:56 UTC
Views: 12
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.