CVE-2026-94206
Cloak PBKDF2 field ignores the configured iteration count and runs only :size rounds
Mitigation
- Upgrade cloak to 1.0.0-alpha.0 or later.
- Upgrade cloak to 681c9702b7cd9afe0e5a840751ab009f550c69a9 or later.
- Vendor workaround: Override dump/1 in the field module that uses Cloak.Ecto.PBKDF2, so that it calls :pbkdf2.pbkdf2/5 with the configured :iterations and :size. Then recompute all stored hashes, because the existing values no longer match.
Who should check
- Anyone running danielberkompas cloak >= 0.7.0, < 1.0.0-alpha.0
- Anyone running danielberkompas cloak >= 8699e6417a162c39d9f0ef63511bd23d3f38d1d2, < 681c9702b7cd9afe0e5a840751ab009f550c69a9
- Anyone running danielberkompas cloak_ecto >= 1.0.0-alpha.0, < *
- Anyone running danielberkompas cloak_ecto >= a8fa1642b02f1c445a1ee8794c9095eb0921f8f3, < *
Vulnerability facts
- Affected
- danielberkompas cloak >= 0.7.0, < 1.0.0-alpha.0; danielberkompas cloak >= 8699e6417a162c39d9f0ef63511bd23d3f38d1d2, < 681c9702b7cd9afe0e5a840751ab009f550c69a9; danielberkompas cloak_ecto >= 1.0.0-alpha.0, < *; danielberkompas cloak_ecto >= a8fa1642b02f1c445a1ee8794c9095eb0921f8f3, < *
- Fixed in
- danielberkompas cloak 1.0.0-alpha.0, danielberkompas cloak 681c9702b7cd9afe0e5a840751ab009f550c69a9
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.3 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.33% chance of exploitation in 30 days (percentile 19, 2026-11-26)
- CWE
- CWE-916
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| danielberkompas cloak | >= 0.7.0, < 1.0.0-alpha.0 | — | cvelist |
| danielberkompas cloak | >= 8699e6417a162c39d9f0ef63511bd23d3f38d1d2, < 681c9702b7cd9afe0e5a840751ab009f550c69a9 | — | cvelist |
| danielberkompas cloak_ecto | >= 1.0.0-alpha.0, < * | — | cvelist |
| danielberkompas cloak_ecto | >= a8fa1642b02f1c445a1ee8794c9095eb0921f8f3, < * | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-94206. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-94206.md Affected: danielberkompas cloak >= 0.7.0, < 1.0.0-alpha.0; danielberkompas cloak >= 8699e6417a162c39d9f0ef63511bd23d3f38d1d2, < 681c9702b7cd9afe0e5a840751ab009f550c69a9; danielberkompas cloak_ecto >= 1.0.0-alpha.0, < *; danielberkompas cloak_ecto >= a8fa1642b02f1c445a1ee8794c9095eb0921f8f3, < * Fixed in: danielberkompas cloak 1.0.0-alpha.0, danielberkompas cloak 681c9702b7cd9afe0e5a840751ab009f550c69a9 Steps: 1. Search this machine and project for danielberkompas cloak, danielberkompas cloak_ecto: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-94206 being exploited?
There is no confirmed exploitation: CVE-2026-94206 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-94206?
Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-94206?
danielberkompas cloak >= 0.7.0, < 1.0.0-alpha.0; danielberkompas cloak >= 8699e6417a162c39d9f0ef63511bd23d3f38d1d2, < 681c9702b7cd9afe0e5a840751ab009f550c69a9; danielberkompas cloak_ecto >= 1.0.0-alpha.0, < *; danielberkompas cloak_ecto >= a8fa1642b02f1c445a1ee8794c9095eb0921f8f3, < *.
Is there a fix for CVE-2026-94206?
Yes. Fixed in danielberkompas cloak 1.0.0-alpha.0, danielberkompas cloak 681c9702b7cd9afe0e5a840751ab009f550c69a9. Upgrade cloak to 1.0.0-alpha.0 or later. Upgrade cloak to 681c9702b7cd9afe0e5a840751ab009f550c69a9 or later. Vendor workaround: Override dump/1 in the field module that uses Cloak.Ecto.PBKDF2, so that it calls :pbkdf2.pbkdf2/5 with the configured :iterations and :size. Then recompute all stored hashes, because the existing values no longer match.
How do I check if I'm affected by CVE-2026-94206?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.