{"id":"CVE-2026-63575","revision":"b841be539db143d293b4e9abbe73d7e9","records":[{"revision":"b841be539db143d293b4e9abbe73d7e9","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63575","aliases":[],"title":"PKCS#12 key derivation loops about 2^32 times on a zero or negative iteration count","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.","state":0,"publishedAt":"2026-10-02T07:06:31.876+00:00","modifiedAt":"2026-10-02T19:25:38.391+00:00","affected":[{"ecosystem":"https://www.nuget.org/packages/BouncyCastle.Cryptography","name":"BouncyCastle.Cryptography","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"bc-csharp\",\n                    \"collectionURL\": \"https://www.nuget.org/packages/BouncyCastle.Cryptography\",\n                    \"packageName\": \"BouncyCastle.Cryptography\",\n                    \"repo\": \"https://github.com/bcgit/bc-csharp\",\n                    \"programFiles\": [\n                        \"crypto/src/crypto/generators/Pkcs12ParametersGenerator.cs\",\n                        \"crypto/src/security/PbeUtilities.cs\",\n                        \"crypto/src/pkcs/Pkcs12Store.cs\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"2.7.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":7.1,"severity":"HIGH"}],"references":["https://github.com/bcgit/bc-csharp/wiki/CVE-2026-63575","https://github.com/bcgit/bc-csharp/commit/0c7a6dfd64c4a479577e35a728a766721b79aba7","https://github.com/bcgit/bc-csharp/commit/7c0ed15f9783c9595b1a53f3900136461fd944f4"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63575","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63575","identifiers":["CVE-2026-63575"]},"retained":false,"historicalAffected":[]}],"coverage":[]}