Skip to content
Heist/ feed
High

Unbounded allocation from OpenPGP signature and user attribute subpacket lengths

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-63574

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-63574

bc-csharp

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/bcgit/bc-csharp",
    "vendor": "Legion of the Bouncy Castle Inc.",
    "product": "bc-csharp",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.7.0",
        "versionType": "semver"
      }
    ],
    "packageName": "BouncyCastle.Cryptography",
    "programFiles": [
      "crypto/src/bcpg/SignatureSubpacketsReader.cs",
      "crypto/src/bcpg/UserAttributeSubpacketsReader.cs"
    ],
    "collectionURL": "https://www.nuget.org/packages/BouncyCastle.Cryptography",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-63574

Source reference: /cveMetadata/cveId

Publisher severity

high

Source reference: /containers/cna/metrics

Event
#8147 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement