# CVE-2026-94206: Cloak PBKDF2 field ignores the configured iteration count and runs only :size rounds

- Severity: Medium 6.3 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-10-06T08:38:04.584Z
- Modified: 2026-11-25T17:23:11.588Z
- Also known as: EEF-CVE-2026-94206
- Weaknesses: CWE-916
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: EEF

## 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.

The 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.

This issue affects cloak: from 0.7.0 before 1.0.0-alpha.0; cloak_ecto: from 1.0.0-alpha.0 onward.

(As written by CVE List.)

## Affected

- cloak: from 0.7.0 before 1.0.0-alpha.0
- danielberkompas/cloak: from 8699e6417a162c39d9f0ef63511bd23d3f38d1d2 before 681c9702b7cd9afe0e5a840751ab009f550c69a9
- cloak_ecto: from 1.0.0-alpha.0 before *
- danielberkompas/cloak_ecto: from a8fa1642b02f1c445a1ee8794c9095eb0921f8f3 before *
- cloak (Hex): from 0.7.0 before 1.0.0-alpha.0
- cloak_ecto (Hex): from 1.0.0-alpha.0
- https://github.com/danielberkompas/cloak: from 8699e6417a162c39d9f0ef63511bd23d3f38d1d2 before 681c9702b7cd9afe0e5a840751ab009f550c69a9
- https://github.com/danielberkompas/cloak_ecto: from a8fa1642b02f1c445a1ee8794c9095eb0921f8f3

## Every score

- EEF: CVSS:4.0 6.3 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://cna.erlef.org/cves/CVE-2026-94206.html> (related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-94206> (related)
- <https://github.com/danielberkompas/cloak/commit/8699e6417a162c39d9f0ef63511bd23d3f38d1d2> (related, web)
- <https://github.com/danielberkompas/cloak/commit/681c9702b7cd9afe0e5a840751ab009f550c69a9> (fix, patch)
- <https://github.com/danielberkompas/cloak_ecto/commit/a8fa1642b02f1c445a1ee8794c9095eb0921f8f3> (related, web)
- <https://hex.pm/packages/cloak> (package)
- <https://hex.pm/packages/cloak_ecto> (package)

## Sources

- CVE List: [CVE-2026-94206](https://www.cve.org/CVERecord?id=CVE-2026-94206), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-94206](https://osv.dev/vulnerability/EEF-CVE-2026-94206), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-94206](https://nvd.nist.gov/vuln/detail/CVE-2026-94206), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-94206 · Whole record: https://cve.day/CVE-2026-94206.json · Rebuilt by cve.day 2026-11-25T22:59:42.272Z
