Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcpg-fips
  4. ›
  5. CVE-2026-59649

CVE-2026-59649: OpenPGP user-attribute subpacket length bounded only by JVM max memory

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java FIPS (BC-FJA) bcpg-fips before 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series). UserAttributeSubpacketInputStream.readPacket() reads a five-octet subpacket length of up to Integer.MAX_VALUE and allocates a buffer after checking it only against a limit that, for the wrapped stream types involved, resolves to the JVM maximum heap size rather than the enclosing packet length. Importing a public key from a keyserver, WKD or attachment can therefore force a near-heap-sized allocation from a few dozen bytes, throwing OutOfMemoryError before the short stream is noticed.

References

  • github.com/bcgit/bc-java/commit/a43c40dc12c3e1c6cbd03c83fe30aaec4029b824
  • github.com/bcgit/bc-java/wiki/CVE-2026-59649
  • nvd.nist.gov/vuln/detail/CVE-2026-59649

Code Behaviors & Features

Detect and mitigate CVE-2026-59649 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.0.0 before 1.0.13, all versions starting from 2.0.8 before 2.0.13, all versions starting from 2.1.10 before 2.1.13

Fixed versions

  • 1.0.13
  • 2.0.13
  • 2.1.13

Solution

Upgrade to versions 1.0.13, 2.0.13, 2.1.13 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-789: Memory Allocation with Excessive Size Value

Source file

maven/org.bouncycastle/bcpg-fips/CVE-2026-59649.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:42 +0000.