CVE-2026-118391
published high CVSS 4.0 · 8.9Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| elixir-ecto | — | ecto3.4.0 to < 3.14.3 · Other versions: unaffected | Affected | Not stated | EEF |
| elixir-ecto | — | elixir-ecto/ectoecto · cb2f03964dac324a9771f84f5088e395326e6de8 and later (affected · git); changes: unaffected at d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea, unaffected at eef014ad090d27d1a5b69c0e32a50eabd44ab3bb · Other versions: unaffected | Version-specific | Not stated | EEF |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.9 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| elixir-ecto | ecto | 3.4.0 to < 3.14.3 (affected · semver)Default: unaffected | EEF · cna |
| elixir-ecto | ecto | cb2f03964dac324a9771f84f5088e395326e6de8 and later (affected · git); changes: unaffected at d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea, unaffected at eef014ad090d27d1a5b69c0e32a50eabd44ab3bbDefault: unaffected | EEF · cna |
Weaknesses
1- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
References
11- EEF CNA record for CVE-2026-118391 https://cna.erlef.org/cves/CVE-2026-118391.html
- Ecto.Query.API.json_extract_path/2 https://ecto.hexdocs.pm/Ecto.Query.API.html#json_extract_path/2
- Ecto.Query.API.splice/1 https://ecto.hexdocs.pm/Ecto.Query.API.html#splice/1
- Introducing commit cb2f039 in elixir-ecto/ecto https://github.com/elixir-ecto/ecto/commit/cb2f03964dac324a9771f84f5088e395326e6de8
- Fix commit d0e97d8 in elixir-ecto/ecto https://github.com/elixir-ecto/ecto/commit/d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea
- Add splice to fragment (#4228), v3.11.0 https://github.com/elixir-ecto/ecto/commit/eb03f45b999e2bf67ffae92811233eb6e56dba55
- Fix commit eef014a in elixir-ecto/ecto https://github.com/elixir-ecto/ecto/commit/eef014ad090d27d1a5b69c0e32a50eabd44ab3bb
- String interpolation will grow cached unboundedly (#1031) https://github.com/elixir-ecto/ecto/issues/1031
- Should we allow disabling of Ecto cache on specific queries? (#4470) https://github.com/elixir-ecto/ecto/issues/4470
- Unbounded query cache growth from interpolated JSON paths and splice lists enables memory exhaustion denial of service https://github.com/elixir-ecto/ecto/security/advisories/GHSA-cxjx-vmm2-qr8r
- OSV record EEF-CVE-2026-118391 https://osv.dev/vulnerability/EEF-CVE-2026-118391
Provider assertions
2EEF · cna
Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c970ccd04c94252c77f1e08c658060f63abf43c9aae7aea8380b69ec0956c40e
- Ingested
- 02 Dec 2026, 03:24:09 UTC
- Source record
- Official CVE record