CVE-2026-94206: CWE-916 Use of Password Hash With Insufficient Computational Effort in danielberkompas cloak_ecto
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_ecto: from 1.0.0-alpha.0 onward; cloak: from 0.7.0 before 1.0.0-alpha.0.
CVSS v4.0
Score 6.3medium
Affected software
danielberkompas
cloak_ecto
danielberkompas
cloak_ecto
danielberkompas
cloak
danielberkompas
cloak
cpe:2.3:a:danielberkompas:cloak_ecto:*:*:*:*:*:*:*:*cpe:2.3:a:danielberkompas:cloak:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability arises because the dump/1 callback in Cloak.Ecto.PBKDF2 (and previously in cloak) calls :pbkdf2.pbkdf2/4 with the configured size parameter in place of the iteration count. Although the iterations setting is validated, it is never used in the hash computation. With default settings (iterations: 600,000 and size: 32), the actual number of PBKDF2 rounds performed is only 32 instead of 600,000. This reduces the computational cost of offline guessing attacks by approximately 18,750 times, making brute-force attacks on low-entropy plaintexts like email addresses much more feasible. The affected versions are cloak_ecto from 1.0.0-alpha.0 onward and cloak from 0.7.0 up to but not including 1.0.0-alpha.0.
Potential Impact
An attacker who obtains the hashed values and the configured secret can perform offline brute-force attacks on low-entropy plaintexts significantly faster than intended due to the drastically reduced iteration count in the PBKDF2 hashing. This undermines the security guarantees of the password hashing mechanism, increasing the risk of credential compromise or data exposure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should be aware of the reduced computational effort in the hashing process and consider additional protective measures such as increasing the entropy of plaintext inputs or avoiding reliance on the affected versions for sensitive data hashing.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-09-24T09:30:02.102Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6ac4b6462cdf04f65690d9b0
Added to database: 10/06/2026, 08:50:14 UTC
Last enriched: 10/06/2026, 09:03:49 UTC
Last updated: 10/06/2026, 18:57:28 UTC
Views: 21
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.