CVE-2026-63575
published high CVSS 4.0 · 7.1PKCS#12 key derivation loops about 2^32 times on a zero or negative iteration count
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle Inc. | — | BouncyCastle.Cryptographybc-csharp · 0 to < 2.7.0 · Other versions: unaffected | Affected | Not stated | bcorg |
Description
Loop with unreachable exit condition in the PKCS#12 key derivation (Pkcs12ParametersGenerator) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an attacker who can supply a PKCS#12 (PFX) file, or a PKCS#8 encrypted private key that uses a PKCS#12 password-based encryption algorithm, to cause a denial of service through CPU exhaustion via an iteration count of zero or below, because the derivation loop ran until its counter equalled the count, so for such a count it wrapped through about 2^32 iterations before the MAC or the password could be checked. A 75-byte PFX file with a negative MacData iteration count kept Pkcs12Store.Load busy for many minutes.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- bcorg · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Legion of the Bouncy Castle Inc. | bc-csharp | 0 to < 2.7.0 (affected · semver)Default: unaffected | bcorg · cna |
Weaknesses
1- CWE-835 CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')
References
3Provider assertions
2bcorg · cna
PKCS#12 key derivation loops about 2^32 times on a zero or negative iteration count
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 55a9241e2f9525f7fa2559e5e2097862e94a2085a1b46670cd81f98241b52adf
- Ingested
- 02 Oct 2026, 21:03:17 UTC
- Source record
- Official CVE record