Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify JSON filter/sort endpoint interpolating request data
-
DeliverySend many requests with distinct JSON keys or list lengths
-
ExploitEach query bypasses cache key and adds ETS entry plus prepared statement
-
ExecutionUnbounded memory growth never released
-
ImpactExhaust application node and database server memory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the application interpolate attacker-controlled request data into one of the specific Ecto constructs json_extract_path(field, ^path), json_extract_path(field, [^key]), field[^key], or a request-controlled list into splice/1 within a fragment, AND that these queries run through a repository using the default query_cache: true. Typical exposed cases are filter and sort endpoints over JSON columns. For splice/1, only ecto >= 3.11.0 is affected; interpolated JSON path exposure applies from 3.4.0. With ecto_sql, impact extends to the database server (each cache entry is also a new prepared statement, amplified per connection in a larger pool). Limiting factors: the vulnerable query constructs must be present and fed with external data (default Ecto usage without these patterns is not affected), and the memory is only reclaimed on process restart. Mitigations per the vendor: upgrade to 3.14.3 (the complete fix), validate external data before interpolation, pass the path as a query parameter (e.g. fragment with type(^path, {:array, :string})), or disable caching per query with Repo.all(query, query_cache: false). |
| Impact | Signals are mixed and point to a conditional, moderate-urgency availability issue rather than a universal emergency. The CVSS 4.0 base score is high (8.9) and the vector (AV:N/AC:L/PR:N/UI:N) describes remote, unauthenticated, low-complexity requests with high availability impact to both the vulnerable system (VA:H) and a subsequent system - the database server (SA:H). Critically, the vector also carries AT:P (attack requirements present): exploitation is not possible against a default Ecto install but only when the application interpolates attacker-controlled data into json_extract_path/2, field[^key], or splice/1 and runs those queries through a repository with the default query_cache: true. This gating condition is the main reason the real-world risk is narrower than the 8.9 suggests. No EPSS score is provided, and the CVE is not listed in CISA KEV, so there is no confirmed active exploitation. The vendor advisory describes a proof-of-concept measuring memory growth (~2 MB retained in the application and ~3 MB in PostgreSQL per 1 MB of request data), but no public, verified working exploit code is linked. The vuln.today decision label is this_week, consistent with a serious but not emergency priority: applications that expose JSON filter/sort endpoints over JSON columns should patch promptly, while applications that never interpolate request data into these specific query constructs are effectively unaffected. In short, this is a legitimate DoS priority for a specific usage pattern, not a blanket critical for every Ecto deployment. |
| Exploit ScenarioDerived | An application exposes a filter or sort endpoint over a JSON column that passes request-supplied keys into json_extract_path/field[^key], or passes a request-controlled list into splice/1, running through a repository with default caching. A remote unauthenticated attacker repeatedly sends requests each using a distinct JSON key (or list of distinct length), and because interpolated path elements and splice lengths become part of the query expression, every request creates a new, never-evicted ETS cache entry and a new prepared statement per database connection. The vendor's proof-of-concept shows roughly 2 MB retained in the application and 3 MB in PostgreSQL per 1 MB of request data, so sustained requests exhaust memory in the application node, the database server, or both until the processes restart. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
Unbounded growth of the per-repository Ecto query cache allows an unauthenticated remote attacker to permanently exhaust memory in the Elixir application and, when ecto_sql is used, in the database server by sending requests whose distinct JSON keys or list lengths are interpolated into queries. The flaw is conditional: an application is exposed only if it feeds request data into json_extract_path(field, ^path), json_extract_path(field, [^key]), field[^key] or a request-controlled list into splice/1, and runs those queries through a repository with the default query_cache: true - typically filter and sort endpoints over JSON columns. A public PoC reference exists in the vendor advisory (it measured roughly 2 MB retained in the BEAM and 3 MB in PostgreSQL per 1 MB of request data); it is not verified here as working exploit code, and there is no confirmed active exploitation (CISA KEV). Severity is high (vendor CVSS 4.0 base 8.9; assessed CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H, availability-only with scope change), and the vendor fix is version 3.14.3.
RemediationAI
Upgrade ecto to 3.14.3, which the vendor describes as the complete fix and recommends applying immediately; the change is carried in commit d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea (with related commits eef014ad090d27d1a5b69c0e32a50eabd44ab3bb, cb2f03964dac324a9771f84f5088e395326e6de8 and eb03f45b999e2bf67ffae92811233eb6e56dba55) and documented in the advisory at https://github.com/elixir-ecto/ecto/security/advisories/GHSA-cxjx-vmm2-qr8r. Where upgrading is not immediately possible, the vendor lists three mitigations: validate any external data before interpolating it into json_extract_path or splice (rejects legitimate arbitrary filter keys, so the exposed endpoint's functionality must be constrained); pass the path as a query parameter so it is not part of the cache key, e.g. fragment("? #> ?", i.meta, type(^path, {:array, :string})) on PostgreSQL (requires rewriting the query and is adapter-specific); or disable caching for these queries with Repo.all(query, query_cache: false), which gives up planning/prepared-statement reuse for that query. None of these mitigations reclaims memory already retained - the cache and the database prepared statements persist until the application and database processes are restarted - so a restart plus the chosen mitigation (or the upgrade) is required to clear the accumulated state. Prioritization per available signals is this week rather than emergency escalation.
Affected VersionsENISA
Affected Packages
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
Ecto is Elixir's database wrapper and query DSL. To avoid re-planning repeated queries, each repository keeps a query cache in an ETS table keyed by the normalized query expression, and with ecto_sql every cached entry also becomes a prepared statement on the database connection that executed it. Normally interpolated values become query parameters and therefore do not change the cache key - but interpolated JSON path elements in json_extract_path/2 and field[^key] (supported since 3.4.0, commit cb2f039) and the length of a list given to splice/1 (added in 3.11.0, commit eb03f45) are inlined into the query expression itself, so each distinct key, path or list length produces a new expression and a new cache entry. This is CWE-770 (Allocation of Resources Without Limits or Throttling): the ETS cache has no size limit and no eviction, and prepared statements on the DB connection are likewise never reclaimed, so memory is released only when the BEAM or database process restarts. The fix (commit d0e97d8a) reclassifies interpolated JSON paths and constants as :inline parameters that are inlined by the planner and marked non-cacheable, and applies the same non-cacheable treatment to splice/variadic params, aligning these constructs with the earlier decision to disable caching for values/2 sources (issue #4470, a previous unbounded-cache report tracked as issue #1031).
Know when Ecto 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
Remote unauthenticated low-complexity requests (AV:N/AC:L/PR:N/UI:N); availability-only impact with scope change (S:C) because memory exhaustion extends from the application to the separate database server.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Allocation of Resources Without Limits or Throttling vulnerability in elixir-ecto ecto allows an unauthenticated remote attacker to exhaust memory in the application and in the database server by sending requests with distinct JSON keys or list lengths where the application interpolates them into json_extract_path/2, field[^key] or splice/1. Ecto caches prepared queries per repository in an ETS table with no size limit and no eviction. Interpolated JSON path elements become part of the query expression instead of its parameters, and splice/1 expands into one placeholder per element, so every distinct key or list length creates a new cache entry. With ecto_sql each entry is also a new prepared statement on the database connection that runs it. None of this memory is released until the processes restart.
This issue affects ecto: from 3.4.0 before 3.14.3.
Technical POC Analysis
CWE-770 (Allocation of Resources Without Limits or Throttling), instantiated as an unbounded per-repository query cache: Ecto keys its prepared-query cache on the resolved query expression, and for t…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-118391 is a high-severity memory exhaustion flaw in Ecto-based Elixir applications where request-controlled data flows into JSON query operations, allowing an unauthenticated remote party to permanently degrade memory in both the application and its supporting database by sending crafted requests. Any customer-facing filter or sort endpoint built over JSON columns is a candidate exposure, meaning service availability for external users and downstream business processes is at stake. Leadership should care because successful exploitation requires no credentials and produces a lasting resource drain rather than a transient outage, risking sustained disruption and failure to meet availability commitments.
Apply vendor patch. Until validated in production, disable query_cache on affected repositories, block request-controlled dynamic path/list interpolation into the flagged functions, and enforce rate limiting plus input-length caps on JSON filter and sort endpoints.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-116912
NVD
CVE.org
EPSS
GitHub
Exploit-DB