Skip to main content
EPSS 0.3%top 84%

CVE-2026-94206: CWE-916 Use of Password Hash With Insufficient Computational Effort in danielberkompas cloak_ecto

0
Medium
VulnerabilityCVE-2026-94206cvecve-2026-94206cwe-916
Published: 10/06/2026 (10/06/2026, 08:38:04 UTC)
Source: CVE Database V5
Vendor/Project: danielberkompas
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

danielberkompas

cloak_ecto

Affected versions
>=1.0.0-alpha.0

danielberkompas

cloak_ecto

danielberkompas

cloak

Affected versions
>=0.7.0 <1.0.0-alpha.0

danielberkompas

cloak

cloak_ecto
pkg:hex/cloak_ecto
Affected versions
>=1.0.0-alpha.0
GitHub Actionsmore threats →cve
danielberkompas/cloak_ecto
pkg:github/danielberkompas/cloak_ecto
cloak
pkg:hex/cloak
Affected versions
>=0.7.0 <1.0.0-alpha.0
GitHub Actionsmore threats →cve
danielberkompas/cloak
pkg:github/danielberkompas/cloak
CPE configurations (2)
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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/06/2026, 09:03:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses