CVE-2026-63574 PUBLISHED

Unbounded allocation from OpenPGP signature and user attribute subpacket lengths

Assigner: bcorg
Reserved: 16.07.2026 Published: 02.10.2026 Updated: 02.10.2026

Memory allocation with excessive size value in the OpenPGP signature and user attribute subpacket parsers (SignatureSubpacketsParser.ReadPacket, UserAttributeSubpacketsParser.ReadPacket) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote, unauthenticated attacker who can supply a crafted OpenPGP public key, certificate or signature to cause a denial of service (OutOfMemoryException or memory exhaustion in the parsing process) via a subpacket header using the five-octet length form, because the declared length was used to size the subpacket buffer with no upper bound and without being compared with the size of the enclosing subpacket area or packet, so a few bytes of input could demand an allocation of up to about 2 GB before any subpacket data was read.

Metrics

CVSS 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
CVSS Score: 8.7

Product Status

Vendor Legion of the Bouncy Castle Inc.
Product bc-csharp
Versions Default: unaffected
  • affected from 0 to 2.7.0 (excl.)

Credits

  • Discovered by Claude, Anthropic's AI assistant, and triaged by the Anthropic security team in collaboration with Anthropic Research. finder

References

Problem Types

  • CWE-789 Memory Allocation with Excessive Size Value CWE

Impacts

  • Denial of Service (OutOfMemoryException or memory exhaustion from a small crafted key or signature)