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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-916
- **Published:** 2026-10-06T08:38:04.584Z
- **Modified:** 2026-11-20T06:17:45.210Z

## 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, \< \*

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

- 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)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://github.com/danielberkompas/cloak/commit/8699e6417a162c39d9f0ef63511bd23d3f38d1d2>
- patch: <https://github.com/danielberkompas/cloak/commit/681c9702b7cd9afe0e5a840751ab009f550c69a9>
- patch: <https://github.com/danielberkompas/cloak_ecto/commit/a8fa1642b02f1c445a1ee8794c9095eb0921f8f3>
- other: <https://cna.erlef.org/cves/CVE-2026-94206.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-94206>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-94206>

HTML: <https://flawdb.com/CVE-2026-94206> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-94206>
