{"id":"CVE-2026-103600","aliases":["CVE-2026-103600"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded ASN.1 nesting depth causes process-terminating stack overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-02T07:08:51.653Z","modified":"2026-10-28T14:48:30.170Z","severity":{"scorer":"bcorg","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"bcorg","scheme":"CVSS:4.0","vector":"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","score":8.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2.7.0","status":"affected"}],"vendor":"Legion of the Bouncy Castle Inc.","product":"bc-csharp","package":"BouncyCastle.Cryptography","repo":"https://github.com/bcgit/bc-csharp","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"2.7.0"}],"vendor":"bouncycastle","product":"bc-csharp","cpe":"cpe:2.3:a:bouncycastle:bc-csharp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/bcgit/bc-csharp/wiki/CVE-2026-103600","tags":["patch","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bcgit/bc-csharp/commit/89c81b0da7fe11cd70013285560bbc472cb73901","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/bcgit/bc-csharp/commit/b99f4e3dcea05b57becc79dfa6ad91a54c778d65","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":["Yt"],"assigner":"bcorg","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-02T17:53:50.650Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-103600","url":"https://www.cve.org/CVERecord?id=CVE-2026-103600","licence":"CVE Terms of Use","modified":"2026-10-02T17:54:00.089Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-103600","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-103600","licence":"Public domain","modified":"2026-10-28T14:48:30.170Z"}],"updatedAt":"2026-11-25T22:59:41.911Z","epss":{"score":0.00359,"percentile":0.31689,"date":"2026-12-01T12:00:22.000Z"}}