# CVE-2026-103604: Quadratic-time escaping when converting X.509 distinguished names to strings

- Severity: High 8.7 (CVSS:4.0, scored by bcorg) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-10-02T07:11:04.012Z
- Modified: 2026-10-28T13:27:32.543Z
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: bcorg

## Description

Inefficient algorithmic complexity in X.509 distinguished name string conversion (X509Name.ToString and IetfUtilities.ValueToString) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a certificate, CRL, certification request or other structure whose name contains a long attribute value made up of characters that must be escaped, such as commas, or of leading or trailing spaces, because each escaping backslash was inserted into the buffer being scanned, so the work grew quadratically with the length of the value. Applications are exposed when they convert such a name to a string, for example to log or display it, or compare it with IetfUtilities.RdnAreEqual, as PKIX path validation does for directoryName name constraints.

(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.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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:N/A:H`

## References

- <https://github.com/bcgit/bc-csharp/wiki/CVE-2026-103604> (patch, vendor-advisory)
- <https://github.com/bcgit/bc-csharp/commit/bd03e38bbb49db5be33f4463fc40997400c545cc> (patch)

## Sources

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

---

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