CVE-2026-103600
published high CVSS 4.0 · 8.7Unbounded ASN.1 nesting depth causes process-terminating stack overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle Inc. | — | BouncyCastle.Cryptographybc-csharp · 0 to < 2.7.0 · Other versions: unaffected | Affected | Not stated | bcorg |
Description
Uncontrolled recursion in the ASN.1 parser (Asn1InputStream, Asn1StreamParser) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service via a crafted ASN.1 encoding of deeply nested constructed elements (for example SEQUENCE inside SEQUENCE, in definite-length DER or indefinite-length BER form), because each nesting level is parsed by a further recursive call with no bound on depth. About 2,000 levels (8 KB of DER) are enough to exhaust a 1.5 MB thread stack, the .NET main-thread default on Windows, and raise a StackOverflowException, which .NET cannot catch and which terminates the whole process; on threads with larger stacks, parse time instead grows quadratically with depth (about 9 seconds of CPU for a 64 KB input). Any path that parses untrusted ASN.1 is exposed, including X.509 certificates and CRLs, CMS/PKCS#7, PKCS#8/PKCS#12, OCSP and TLS Certificate messages.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- bcorg · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Legion of the Bouncy Castle Inc. | bc-csharp | 0 to < 2.7.0 (affected · semver)Default: unaffected | bcorg · cna |
Weaknesses
1- CWE-674 CWE-674 Uncontrolled Recursion
References
3Provider assertions
2bcorg · cna
Unbounded ASN.1 nesting depth causes process-terminating stack overflow
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- fde829331d9f874362e9892dac7d0450882db1972eb20c73adfe1e7f59c33ea6
- Ingested
- 02 Oct 2026, 19:09:27 UTC
- Source record
- Official CVE record