Skip to main content

Cloak.Ecto PBKDF2 EUVDEUVD-2026-93091

| CVE-2026-94206 MEDIUM
Use of Password Hash With Insufficient Computational Effort (CWE-916)
2026-10-06 EEF GHSA-fjfg-jh7h-6w3j
6.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Exfiltrate database hashes and configured secret
  2. Exploit
    Observe only 32 PBKDF2 rounds applied
  3. Execution
    Offline brute-force low-entropy candidates (emails)
  4. Impact
    Match hashes to recover plaintext values

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires the application to use Cloak.Ecto.PBKDF2 (or legacy Cloak.Fields.PBKDF2) hashed/blind-index fields, and the attacker must already possess BOTH the stored hash values (e.g., an email_hash column) and the configured :secret - the secret is normally confidential, so this weakness accelerates rather than enables offline cracking. It is only practically useful against low-entropy plaintexts such as email addresses; high-entropy values remain infeasible even at 32 rounds. Affected deployments are cloak_ecto from 1.0.0-alpha.0 onward and cloak 0.7.0 before 1.0.0-alpha.0. The limiting factors are the need for prior database and secret disclosure and the low-entropy constraint, which together make this a post-compromise amplifier rather than a standalone remote exploit.

Impact

The CNA (Erlang Ecosystem Foundation) assigned CVSS 4.0 base 6.3 (medium) with vector AV:N/AC:L/AT:P/PR:N/UI:N and confidentiality-only low impact (VC:L, VI:N, VA:N). No EPSS score, KEV listing, or public POC is present in the supplied data, so there is no public exploit identified at time of analysis and no evidence of active exploitation. The most important signal is the AT:P (attack requirement present) combined with the description's explicit precondition: the attacker must already hold BOTH the stored hash values AND the configured secret. This is a strong mitigating factor that the raw CVSS does not fully convey. I also flag a conflict: the vendor vector uses PR:N (unauthenticated), yet obtaining the :secret requires access to confidential application configuration - so in practice this is far from a zero-privilege network attack, and PR:N likely understates the real barrier. Net assessment: this is a legitimate cryptographic weakness (defense-in-depth erosion of a blind-index/hash field) rather than a widely-weaponizable remote vulnerability. It becomes material only after a separate compromise has already leaked the database and the secret, so it is a lower-priority patch-when-able issue for most defenders, elevated only where low-entropy values (emails) are hashed and the secret handling is weak.

Exploit ScenarioDerived

An attacker who has already exfiltrated an application's database (including the PBKDF2 hash/blind-index columns) and recovered the configured :secret runs an offline guessing attack against low-entropy values such as email addresses. Because each hash executes only 32 PBKDF2 rounds instead of the configured 600,000, cracking is roughly 18,750x cheaper than intended, letting the attacker recover plaintext behind deterministic hash fields. No public exploit code is identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Insufficient password-hashing work factor in the Cloak.Ecto PBKDF2 field module causes hashes to be derived with roughly 18,750 times less computational effort than the configured parameters imply, letting anyone who already holds both the stored hash values and the configured :secret brute-force low-entropy plaintexts (such as email addresses) far more cheaply than the library promises. The affected code is cloak_ecto from 1.0.0-alpha.0 onward and cloak from 0.7.0 before 1.0.0-alpha.0; the vulnerable dump/1 callback passes config[:size] (default 32) into PBKDF2's iteration-count position, so each hash runs 32 rounds instead of the default 600,000. This is a post-compromise amplifier rather than a standalone remote exploit: it requires prior disclosure of the hash column and the application secret, and remains impractical against high-entropy values. No public exploit code was identified at time of analysis, and CISA KEV does not list this CVE; the CNA assigned CVSS 4.0 base 6.3 (medium), while our independent assessment rates it CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N, reflecting the privileged prerequisites and confidentiality-only impact.

RemediationAI

Patch status is 'Patch available per vendor advisory' with upstream fix commits published: the commit marked as the patch is https://github.com/danielberkompas/cloak/commit/681c9702b7cd9afe0e5a840751ab009f550c69a9, alongside the cloak_ecto and cloak commits linked from https://cna.erlef.org/cves/CVE-2026-94206.html; a released, tagged patched version is not independently confirmed in the available data, so verify the effective iteration count after upgrading rather than assuming a version number. After applying the fix, stored hashes remain weak because they were derived with only 32 rounds - re-derive every PBKDF2-indexed column (re-run dump/1 over the plaintexts, or re-save the affected records) so the corrected iteration count takes effect, and treat any indexed column as cracked if both a database dump and the :secret have ever leaked, rotating the secret and re-hashing under the new one (the trade-off is a CPU/time cost on every write and lookup, plus a backfill migration that requires access to the plaintext values). If an upgrade is not immediately possible, the only meaningful stopgap is to stop using the library's injected dump/1 for PBKDF2 fields - override it in the field module, or replace the blind-index hash with a hand-written HMAC/PBKDF2 wrapper - which preserves the argument order and real iteration count but adds maintenance burden and risks divergence from upstream; simply raising :iterations does nothing, because that setting is never read by the buggy code path. Defense-in-depth controls with clear trade-offs: keep the PBKDF2 :secret out of the database and source control (environment variable or secret manager) since the attack requires both the hashes and the secret, restrict read access to hash columns so a partial database compromise cannot yield the indexes alone, and accept that deterministic indexes inherently leak equality between records - switch to non-deterministic encryption for fields that do not require lookups.

Affected VersionsENISA

cloak_ecto a8fa1642b02f1c445a1ee8794c9095eb0921f8f3 <*
cloak 0.7.0 <1.0.0-alpha.0
cloak_ecto 1.0.0-alpha.0 <*
cloak 8699e6417a162c39d9f0ef63511bd23d3f38d1d2 <681c9702b7cd9afe0e5a840751ab009f550c69a9

Affected Packages

euvd cloak fix: 1.0.0-alpha.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Cloak is an Elixir encryption library for Ecto, and its PBKDF2 field type (Cloak.Ecto.PBKDF2, formerly Cloak.Fields.PBKDF2) creates deterministic blind indexes: a hashed copy of a field such as an email address that can be queried with Repo.get_by/2 while the real value is encrypted non-deterministically. CWE-916 (Use of Password Hash With Insufficient Computational Effort) is the root-cause class: the security of a deterministic hash index rests entirely on key stretching, i.e. the number of PBKDF2 iterations performed. The injected dump/1 callback calls :pbkdf2.pbkdf2/4 with config[:size] placed in the iteration-count argument position, so the configured :iterations value is validated at configuration time but never actually used. With the cloak_ecto defaults (iterations: 600_000, size: 32) every hash therefore performs 32 PBKDF2 rounds, an approximately 18,750x reduction in attacker work, and derived keys are correspondingly weakened. The affected code was introduced in cloak_ecto commit a8fa1642b02f1c445a1ee8794c9095eb0921f8f3 and cloak commit 8699e6417a162c39d9f0ef63511bd23d3f38d1d2; CPE records for the wildcard-versioned packages cpe:2.3:a:danielberkompas:cloak_ecto and cpe:2.3:a:danielberkompas:cloak confirm the two affected components. Note that the accompanying tag 'Code Injection' is not supported by the advisory text or by any source-code evidence, which shows a cryptographic parameter-passing defect rather than code execution.

Know when Cloak gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 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
vuln.today AI 2.2 LOW

Attacker must already hold the configured secret (PR:H) and only low-entropy values are feasibly recoverable (AC:H); impact is confidentiality-only and low, with no integrity or availability effect.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
Low
popular within niche Elixir ecosystem, limited overall deployment footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy