Skip to main content

CVE-2026-103604: CWE-407 Inefficient Algorithmic Complexity in Legion of the Bouncy Castle Inc. bc-csharp

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

Description

Inefficient algorithmic complexity in X.509 distinguished name string conversion (X509Name.ToString and IetfUtilities.ValueToString) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows a remote unauthenticated attacker to cause a denial of service through CPU exhaustion via a certificate, CRL, certification request or other structure whose name contains a long attribute value made up of characters that must be escaped, such as commas, or of leading or trailing spaces, because each escaping backslash was inserted into the buffer being scanned, so the work grew quadratically with the length of the value. Applications are exposed when they convert such a name to a string, for example to log or display it, or compare it with IetfUtilities.RdnAreEqual, as PKIX path validation does for directoryName name constraints.

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:03 UTC

Technical Analysis

The vulnerability (CVE-2026-103604) affects the X509Name.ToString and IetfUtilities.ValueToString methods in Legion of the Bouncy Castle Inc. bc-csharp versions prior to 2.7.0. The inefficient algorithmic complexity occurs during conversion of X.509 distinguished names containing long attribute values with characters that must be escaped. Each escaping backslash insertion causes the processing workload to grow quadratically with the length of the value, enabling a remote unauthenticated attacker to cause CPU exhaustion and denial of service. This impacts any application that converts such names to strings, including for logging, display, or directoryName name constraint validation in PKIX path validation.

Potential Impact

A remote unauthenticated attacker can cause denial of service by exhausting CPU resources when the vulnerable library processes specially crafted X.509 names with long attribute values requiring escaping. This can disrupt applications relying on the bc-csharp library for certificate, CRL, or certification request processing, potentially leading to service outages or degraded performance.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid processing certificates or related structures with unusually long attribute values containing characters that require escaping. Monitor vendor channels for updates and apply official fixes once released.

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-p48w-99f8-9598
Osv Schema Version
1.4.0
Aliases
["CVE-2026-103604"]
Database Specific Severity
HIGH
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abfeeb7a43b0b3b89e560a0

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

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

Last updated: 10/02/2026, 19:59:20 UTC

Views: 3

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