Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcutil-fips
  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 FIPS (BC-FJA) bcutil-fips before 2.0.7 (2.0.X series) and 2.1.7 (2.1.X series). 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 2.0.2 before 2.0.7, all versions starting from 2.1.4 before 2.1.7

Fixed versions

  • 2.0.7
  • 2.1.7

Solution

Upgrade to versions 2.0.7, 2.1.7 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-fips/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:21:47 +0000.