IT SBIT Services
Schneeberger
DEEN
CVE tracker

Bouncy Castle bc-csharp: Name constraints bypass via trailing dot in PKIX validation

CVE-2026-103602High 8.2

← All vulnerabilities

Summary

Improper certificate validation in PkixNameConstraintValidator of bc-csharp allows certificates to be accepted for names inside an excluded subtree of a name-constrained intermediate CA. The bypass works when a rfc822Name, dNSName or URI host ends with a dot, because the trailing dot is not removed before comparison. An attacker must control or obtain certificates from such a name-constrained CA, so the precondition is narrow.

Affected

  • bc-csharp (BouncyCastle.Cryptography NuGet package) before 2.7.0
  • Vendor wiki lists BC C# .NET 2.6.2 and earlier, and the 2.7.0-beta.98 pre-release
  • Applies to PkixCertPathValidator and PkixCertPathBuilder on all CLRs

Fixed in

  • BC C# .NET 2.7.0 and later (fix released before the CVE was published on 2 Oct 2026; release date sources differ, 30 July or 7 Aug 2026)

Workaround

  • No vendor workaround documented; upgrading is the remediation.
  • Application-level alternative (untested): reject any email address, DNS name or URI host ending with a dot, or strip the dot and compare against excluded subtrees of the CA certificates in the path.

Exploitation

  • CISA SSVC: exploitation none, automatable no, technical impact partial.
  • No known exploitation in the wild and no public proof of concept found in the reviewed sources; CISA KEV status still to be verified directly.

Our recommendation

  • Inventory .NET applications and NuGet references to BouncyCastle.Cryptography.
  • Upgrade to bc-csharp 2.7.0 or later; do not use the 2.7.0-beta.98 pre-release.
  • Re-test certificate validation for applications that rely on excluded subtrees, especially those using third-party or sub-CAs.
  • Check any Java-based services for the related BC Java issue CVE-2026-8763, fixed in BC Java 1.85.
  • Confirm the CISA KEV status before closing the ticket.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 17:32.

Original description (NVD)

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.

NVD references (4)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.