{"id":"CVE-2026-94206","revision":"de92770585ae4ce4b5bb1ca64845f227","records":[{"revision":"de92770585ae4ce4b5bb1ca64845f227","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-94206","aliases":[],"title":"Cloak PBKDF2 field ignores the configured iteration count and runs only :size rounds","description":"Use of Password Hash With Insufficient Computational Effort vulnerability in danielberkompas cloak_ecto and danielberkompas cloak allows an attacker who holds the hashed values and the configured secret to brute-force low-entropy plaintexts much faster than configured.\n\nThe dump/1 callback that Cloak.Ecto.PBKDF2 (Cloak.Fields.PBKDF2 in cloak before the Ecto code moved to cloak_ecto) injects into a field module calls :pbkdf2.pbkdf2/4 with config[:size] in the iteration-count position. The :iterations setting is validated but never used. With the cloak_ecto defaults (iterations: 600_000, size: 32) each hash runs 32 PBKDF2 rounds instead of 600,000, so offline guessing of values such as email addresses costs about 18,750 times less than configured.\n\nThis issue affects cloak_ecto: from 1.0.0-alpha.0 onward; cloak: from 0.7.0 before 1.0.0-alpha.0.","state":0,"publishedAt":"2026-10-06T08:38:04.584+00:00","modifiedAt":"2026-10-06T11:36:25.466+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"cloak_ecto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:danielberkompas:cloak_ecto:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Cloak.Ecto.PBKDF2'\"\n                    ],\n                    \"packageName\": \"cloak_ecto\",\n                    \"packageURL\": \"pkg:hex/cloak_ecto\",\n                    \"product\": \"cloak_ecto\",\n                    \"programFiles\": [\n                        \"lib/cloak_ecto/types/pbkdf2.ex\"\n                    ],\n                    \"repo\": \"https://github.com/danielberkompas/cloak_ecto\",\n                    \"vendor\": \"danielberkompas\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0-alpha.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"danielberkompas/cloak_ecto","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:danielberkompas:cloak_ecto:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Cloak.Ecto.PBKDF2'\"\n                    ],\n                    \"packageName\": \"danielberkompas/cloak_ecto\",\n                    \"packageURL\": \"pkg:github/danielberkompas/cloak_ecto\",\n                    \"product\": \"cloak_ecto\",\n                    \"programFiles\": [\n                        \"lib/cloak_ecto/types/pbkdf2.ex\"\n                    ],\n                    \"repo\": \"https://github.com/danielberkompas/cloak_ecto\",\n                    \"vendor\": \"danielberkompas\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"a8fa1642b02f1c445a1ee8794c9095eb0921f8f3\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://repo.hex.pm","name":"cloak","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Cloak.Fields.PBKDF2'\"\n                    ],\n                    \"packageName\": \"cloak\",\n                    \"packageURL\": \"pkg:hex/cloak\",\n                    \"product\": \"cloak\",\n                    \"programFiles\": [\n                        \"lib/cloak/fields/pbkdf2.ex\"\n                    ],\n                    \"repo\": \"https://github.com/danielberkompas/cloak\",\n                    \"vendor\": \"danielberkompas\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"1.0.0-alpha.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"0.7.0\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"danielberkompas/cloak","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"'Elixir.Cloak.Fields.PBKDF2'\"\n                    ],\n                    \"packageName\": \"danielberkompas/cloak\",\n                    \"packageURL\": \"pkg:github/danielberkompas/cloak\",\n                    \"product\": \"cloak\",\n                    \"programFiles\": [\n                        \"lib/cloak/fields/pbkdf2.ex\"\n                    ],\n                    \"repo\": \"https://github.com/danielberkompas/cloak\",\n                    \"vendor\": \"danielberkompas\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"681c9702b7cd9afe0e5a840751ab009f550c69a9\",\n                            \"status\": \"affected\",\n                            \"version\": \"8699e6417a162c39d9f0ef63511bd23d3f38d1d2\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":6.3,"severity":"MEDIUM"}],"references":["https://cna.erlef.org/cves/CVE-2026-94206.html","https://osv.dev/vulnerability/EEF-CVE-2026-94206","https://github.com/danielberkompas/cloak_ecto/commit/a8fa1642b02f1c445a1ee8794c9095eb0921f8f3","https://github.com/danielberkompas/cloak/commit/8699e6417a162c39d9f0ef63511bd23d3f38d1d2","https://github.com/danielberkompas/cloak/commit/681c9702b7cd9afe0e5a840751ab009f550c69a9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-94206","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-94206","identifiers":["CVE-2026-94206"]},"retained":false,"historicalAffected":[]}],"coverage":[]}