# CVE-2026-63577: Name Constraints bypass: directoryName constraint matched at any position in the DN instead of as a prefix

- Severity: High 8.2 (CVSS:4.0, scored by bcorg) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2026-10-02T07:07:35.458Z
- Modified: 2026-10-28T14:37:17.447Z
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: bcorg

## Description

Improper certificate validation in the directoryName name-constraint check (PkixNameConstraintValidator.WithinDNSubtree) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who controls, or can have certificates issued by, a name-constrained intermediate CA to get certificates accepted by PKIX path validation whose subject distinguished name, or a directoryName subjectAltName, lies outside the CA's permitted subtrees, via a name that places other RDNs ahead of a copy of the permitted RDN sequence, because the check looks for the constraint's first RDN anywhere in the name and compares the remaining RDNs from that position, instead of requiring the constraint to be an initial prefix of the name as RFC 5280 sections 4.2.1.10 and 7.1 require.

(As written by CVE List.)

## Affected

- BouncyCastle.Cryptography: before 2.7.0
- bouncycastle bc-csharp: before 2.7.0

## Every score

- bcorg: CVSS:4.0 8.2 High `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/bcgit/bc-csharp/wiki/CVE-2026-63577> (patch, vendor-advisory)
- <https://github.com/bcgit/bc-csharp/commit/606e9153b97a265c70ca8293d21ec859344d7de8> (patch)
- <https://github.com/bcgit/bc-csharp/commit/75c3c576602886180ed92a63c89419e3bd63b392> (patch)

## Sources

- CVE List: [CVE-2026-63577](https://www.cve.org/CVERecord?id=CVE-2026-63577), CVE Terms of Use, modified 2026-10-06
- NVD: [CVE-2026-63577](https://nvd.nist.gov/vuln/detail/CVE-2026-63577), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2026-63577 · Whole record: https://cve.day/CVE-2026-63577.json · Rebuilt by cve.day 2026-11-25T22:59:41.917Z
