Skip to main content

CVE-2026-103603: CWE-789 Memory Allocation with Excessive Size Value in Legion of the Bouncy Castle Inc. bc-csharp

0
High
Published: 10/02/2026 (10/02/2026, 07:10:34 UTC)
Source: GCVE Database
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: bc-csharp

Description

Memory allocation with excessive size value in the HSS/LMS signature code (HssPublicKeyParameters, HssSignature) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker who can supply both an HSS public key and a signature to cause a denial of service through memory exhaustion via a public key encoding with an excessive level count, because the level count L read when parsing an HSS public key was not checked against the RFC 8554 maximum of 8, and signature parsing then allocated an array of L - 1 entries before reading any further signature data. A single verification can commit up to about 17 GB of memory or fail with an OutOfMemoryException.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

BouncyCastle/bc-csharp
pkg:nuget/BouncyCastle/bc-csharp
Affected versions
<2.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 18:21:15 UTC

Technical Analysis

The vulnerability exists in the HSS/LMS signature code of Legion of the Bouncy Castle Inc. bc-csharp library versions prior to 2.7.0. When parsing an HSS public key, the level count L is read but not validated against the RFC 8554 maximum of 8. This unchecked value is then used during signature parsing to allocate an array of size L - 1 before reading further signature data. An attacker supplying a crafted public key with an excessive level count can cause the application to allocate an excessive amount of memory, leading to denial of service via memory exhaustion.

Potential Impact

A remote unauthenticated attacker can cause a denial of service by triggering excessive memory allocation during signature verification. This can result in the application consuming large amounts of memory (up to about 17 GB) or crashing with an OutOfMemoryException, potentially disrupting service availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing untrusted HSS public keys or signatures. Monitor for updates from Legion of the Bouncy Castle Inc. regarding patches or official mitigations.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-gpr4-c479-xrw4
Osv Schema Version
1.4.0
Aliases
["CVE-2026-103603"]
Database Specific Severity
HIGH
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abfeeb7a43b0b3b89e560a3

Added to database: 10/02/2026, 17:49:43 UTC

Last enriched: 10/02/2026, 18:21:15 UTC

Last updated: 10/02/2026, 22:45:56 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses