Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcutil-jdk18on
  4. ›
  5. CVE-2026-59645

CVE-2026-59645: OER parser recurses without depth limit on self-referential IEEE 1609.2 schema

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java before 1.85. OERInputStream.parse() walks SEQ, CHOICE and Supplier children recursively with no depth limit, and the bundled IEEE 1609.2 schema is self-referential through signedData. The flag marking that cycle is honoured only by test tooling, not the runtime parser, and the public ETSI entry points parse untrusted bytes before signature verification. A 2-4 KB message with hundreds of nested payloads costs a few bytes per level but several stack frames, producing StackOverflowError.

References

  • github.com/bcgit/bc-java/commit/822b2478b131097368a56290f5728e28dd042989
  • github.com/bcgit/bc-java/wiki/CVE-2026-59645
  • nvd.nist.gov/vuln/detail/CVE-2026-59645

Code Behaviors & Features

Detect and mitigate CVE-2026-59645 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.71.0 before 1.85.0

Fixed versions

  • 1.85.0

Solution

Upgrade to version 1.85.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

maven/org.bouncycastle/bcutil-jdk18on/CVE-2026-59645.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:20:14 +0000.