Home / elixir-ecto / ecto / CVE-2026-118391
CVE-2026-118391: is it exploited, and which versions of elixir-ecto ecto are affected and fixed?
CVE-2026-118391 is a denial of service (resources allocated without limits) vulnerability in elixir-ecto ecto. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 19:09 UTC). Affected: ecto from 3.4.0 before 3.14.3 (CVE record by EEF). Fixed in 3.14.3 (CVE record by EEF). Severity: High (8.9, CVSS 4.0, from EEF).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 19:09 UTC, CVE record December 2, 2026, 03:23 UTC and NVD December 2, 2026, 05:13 UTC.
What is CVE-2026-118391?
Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto
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.
From the CVE record by EEF, last updated December 2, 2026, 03:10 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| elixir-ecto | ecto | from 3.4.0 before 3.14.3 | 3.14.3 |
| elixir-ecto | ecto elixir-ecto/ecto | not stated |
As the CVE record by EEF states it, last updated December 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-118391?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.9 | CVSS 4.0 | 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 | EEF |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-118391 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, November 4, 2026)
- EPSS
- 0.62% probability of exploitation activity in the next 30 days, percentile 51.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-770 Allocation of Resources Without Limits or Throttling
How do I fix it? (from the CVE record)
Upgrade Ecto to 3.14.3 or later. Queries with interpolated JSON path elements or an interpolated splice/1 list are no longer cached, the same as running them with query_cache: false, so distinct keys and list lengths don't add cache entries.
Is there a workaround? (from the CVE record)
Pass the path as a query parameter so it is not part of the cache key. With PostgreSQL: fragment("? #> ?", i.meta, type(^path, {:array, :string})). Alternatively, disable the cache for these queries with Repo.all(query, query_cache: false), or restrict keys and list lengths to a known set before building the query.
Where are the vendor advisories and references?
- Unbounded query cache growth from interpolated JSON paths and splice lists enables memory exhaustion denial of service vendor-advisory, related
- EEF CNA record for CVE-2026-118391 related
- OSV record EEF-CVE-2026-118391 related
- Ecto.Query.API.json_extract_path/2 technical-description
- Ecto.Query.API.splice/1 technical-description
- Add splice to fragment (#4228), v3.11.0 related
- Should we allow disabling of Ecto cache on specific queries? (#4470) related
- String interpolation will grow cached unboundedly (#1031) related
- Introducing commit cb2f039 in elixir-ecto/ecto related
- Fix commit d0e97d8 in elixir-ecto/ecto patch
- Fix commit eef014a in elixir-ecto/ecto patch
Who found and reported it?
- Eric Meadows-Jönsson (finder)
- Eric Meadows-Jönsson (reporter)
- José Valim (remediation developer)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- October 30, 2026
- Published
- November 4, 2026, 13:57 UTC
- CVE record updated
- December 2, 2026, 03:10 UTC by EEF
- NVD
- Deferred, last modified December 2, 2026, 04:17 UTC
- Last checked
- CVE list December 2, 2026, 03:23 UTC; NVD December 2, 2026, 05:13 UTC; KEV December 3, 2026, 19:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-118391
Is CVE-2026-118391 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 19:09 UTC. FIRST's EPSS gives it a 0.62% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of elixir-ecto ecto are affected by CVE-2026-118391?
ecto from 3.4.0 before 3.14.3, per the CVE record by EEF. The tables above give every range the sources list.
Which version fixes CVE-2026-118391?
3.14.3, per the CVE record by EEF. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-118391?
High (8.9, CVSS 4.0, from EEF). The severity table above shows each score with its source.
Where is the official record of CVE-2026-118391?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.