{"id":"CVE-2026-17508","revision":null,"records":[{"revision":"dd80249f2ef5446ca73ffdf0e1ff793d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-17508","aliases":[],"title":"Password-based KDF cost parameters honoured unbounded from untrusted input across the remaining PBE entry points","description":"In Bouncy Castle for Java before 1.86, several password-based key derivation entry points ran the KDF with cost parameters taken from the untrusted input being processed, without bounding them, so a small input could dictate an arbitrary amount of work before any password or integrity check could reject it. The affected paths are the RFC 9579 PBMAC1 MAC calculator builders, which took the PBKDF2 iteration count and derived-key length straight out of PBMAC1Params (JcePBMac1CalculatorBuilder, and PKCS12PBEUtils.createPBMac1Calculator reached from PKCS12PfxPdu.isMacValid); the scrypt parallelization parameter p in the PKCS#8 and PKCS#12 cost guards, which bounded only the cost parameter N and the block size r even though the scratch buffer scales with r times p, so the configured memory ceiling could be evaded entirely; the raw JCA PBKDF2 provider (org.bouncycastle.jcajce.provider.symmetric.PBEPBKDF2); and the bcrypt round count read from an encrypted OpenSSH v1 private key's own kdfoptions. Each now bounds the parameter before deriving, in line with the caps already applied elsewhere in the tree, with the OpenSSH round count configurable through the new org.bouncycastle.openssh.max_rounds property. This completes the bounding begun in 1.85 for the PKCS#8 / PBES2 decryptors (CVE-2026-15055). This issue also affects Bouncy Castle for Java LTS before 2.73.13, and Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).","state":0,"publishedAt":"2026-10-02T07:27:59.519+00:00","modifiedAt":"2026-10-02T17:43:24.578+00:00","affected":[{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java/","name":"bcpkix","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java/\",\n                    \"packageName\": \"bcpkix\",\n                    \"repo\": \"https://github.com/bcgit/bc-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-jdk18on\",\n                    \"modules\": [\n                        \"pkix\"\n                    ],\n                    \"programFiles\": [\n                        \"JcePBMac1CalculatorBuilder\",\n                        \"PKCS12PBEUtils\",\n                        \"JcePKCSPBEInputDecryptorProviderBuilder\",\n                        \"JceOpenSSLPKCS8DecryptorProviderBuilder\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.86\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java/","name":"bcprov","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java/\",\n                    \"packageName\": \"bcprov\",\n                    \"repo\": \"https://github.com/bcgit/bc-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcprov-jdk18on\",\n                    \"modules\": [\n                        \"core\",\n                        \"prov\"\n                    ],\n                    \"programFiles\": [\n                        \"PBEPBKDF2\",\n                        \"OpenSSHPrivateKeyUtil\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.86\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/","name":"bcpkix-lts8on","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-LTS-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-lts/\",\n                    \"packageName\": \"bcpkix-lts8on\",\n                    \"repo\": \"https://github.com/bcgit/bc-lts-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-lts8on\",\n                    \"modules\": [\n                        \"pkix\"\n                    ],\n                    \"programFiles\": [\n                        \"JcePBMac1CalculatorBuilder\",\n                        \"PKCS12PBEUtils\",\n                        \"JcePKCSPBEInputDecryptorProviderBuilder\",\n                        \"JceOpenSSLPKCS8DecryptorProviderBuilder\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.73.0\",\n                            \"lessThan\": \"2.73.13\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-lts/","name":"bcprov-lts8on","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-LTS-JAVA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-lts/\",\n                    \"packageName\": \"bcprov-lts8on\",\n                    \"repo\": \"https://github.com/bcgit/bc-lts-java\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcprov-lts8on\",\n                    \"modules\": [\n                        \"core\",\n                        \"prov\"\n                    ],\n                    \"programFiles\": [\n                        \"PBEPBKDF2\",\n                        \"OpenSSHPrivateKeyUtil\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.73.0\",\n                            \"lessThan\": \"2.73.13\",\n                            \"versionType\": \"maven\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"},{"ecosystem":"https://www.bouncycastle.org/download/bouncy-castle-java-fips/","name":"bcpkix-fips","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Legion of the Bouncy Castle Inc.\",\n                    \"product\": \"BC-FJA\",\n                    \"platforms\": [\n                        \"all\"\n                    ],\n                    \"collectionURL\": \"https://www.bouncycastle.org/download/bouncy-castle-java-fips/\",\n                    \"packageName\": \"bcpkix-fips\",\n                    \"packageURL\": \"pkg:maven/org.bouncycastle/bcpkix-fips\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0\",\n                            \"lessThan\": \"1.0.13\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.0.0\",\n                            \"lessThan\": \"2.0.13\",\n                            \"versionType\": \"maven\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"2.1.0\",\n                            \"lessThan\": \"2.1.13\",\n                            \"versionType\": \"maven\"\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:L/SC:N/SI:N/SA:N/U:Amber","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9017508","https://github.com/bcgit/bc-java/commit/882fdab53f6c4c150a5d6a4e6ef1fc05d382385a","https://github.com/bcgit/bc-java/commit/442393bf187c914b1e66fbed4fab532a1fe06c6a","https://github.com/bcgit/bc-java/commit/20ed9e203caec91d25cd386ceb6d364e9b068f67","https://github.com/bcgit/bc-java/commit/766a31026ac24ed3c6cad8662058ba450c338da1","https://github.com/bcgit/bc-java/commit/e72bc0681ff4227fced912ef7394daf7b7d57bb3","https://github.com/bcgit/bc-java/commit/480d878aa6f7dc8b20403064f304bbe0decbbb1a"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-17508","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-17508","identifiers":["CVE-2026-17508"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-11T19:58:45.4661486+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-11T19:58:45.4661486+00:00","lastSuccessAt":"2026-11-11T19:58:45.6262555+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:58:45.6262565+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-de3b77103708811b6494d2ff7c979037d73ae579742cd1649a5c765137ae5083-bc2564cf749a574ebe6216cd53b2772c98ccf01e107d9e465c7cb9637c59db40","complete":true,"records":424281,"lastAttemptAt":"2026-11-11T19:56:48.005675+00:00","lastSuccessAt":"2026-11-11T19:56:47.8167322+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:56:48.005675+00:00","snapshotPublishedAt":"2026-11-11T19:18:45+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-dc462e64383b443bb509cbf61bca2cb8","complete":false,"records":13759,"lastAttemptAt":"2026-11-11T20:09:03.8159657+00:00","lastSuccessAt":"2026-11-11T20:09:03.811+00:00","error":"167 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-11T20:09:03.811+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13431,"expectedIdentifiers":13813,"failedIdentifiers":167},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-11T19:58:45.4661486+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-11T19:58:45.4661486+00:00","lastSuccessAt":"2026-11-11T19:58:45.6274866+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:58:45.6274869+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-0feae4fee9a0467f9dde710515b6c624","complete":false,"records":13753,"lastAttemptAt":"2026-11-11T19:59:11.1509472+00:00","lastSuccessAt":"2026-11-11T19:59:11.147+00:00","error":"100 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-11T19:59:11.147+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13713,"expectedIdentifiers":13813,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-11T19:58:45.3029621+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:58:45.3029621+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-11T19:56:48.0811645+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:56:48.0811645+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-baa8362b4daf9e5f39d5563775a55935e7b442c0735d33274a921579ce4a0d66","complete":true,"records":3093,"lastAttemptAt":"2026-11-11T19:58:45.4258391+00:00","lastSuccessAt":"2026-11-11T13:00:02.5446881+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:58:45.4258391+00:00","snapshotPublishedAt":"2026-11-11T12:47:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-87231cdc7f9d4c655d3fcacbfa9f6f611f1797a1979bf49bac181b1f6e58d128","complete":true,"records":231686,"lastAttemptAt":"2026-11-11T19:58:45.1608584+00:00","lastSuccessAt":"2026-11-11T19:58:43.6336294+00:00","error":null,"lastVerifiedAt":"2026-11-11T19:58:45.1608584+00:00","snapshotPublishedAt":"2026-11-11T19:48:16+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}