Skip to main content
EPSS 0.2%top 86%

CVE-2026-103602: CWE-295 Improper Certificate Validation in Legion of the Bouncy Castle Inc. bc-csharp

0
High
VulnerabilityCVE-2026-103602cvecve-2026-103602cwe-295
Published: 10/02/2026 (10/02/2026, 07:10:03 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

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

Affected software

Legion of the Bouncy Castle Inc.

bc-csharp

Affected versions
>=0 <2.7.0
BouncyCastle.Cryptography
pkg:nuget/BouncyCastle.Cryptography
Affected versions
>=0 <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, 07:47:03 UTC

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.

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

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