# CVE-2026-118391: Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto

- Severity: High 8.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-11-04T13:57:29.762Z
- Modified: 2026-12-02T04:17:20.540Z
- Also known as: EEF-CVE-2026-118391, GHSA-cxjx-vmm2-qr8r
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- ecto: from 3.4.0 before 3.14.3
- elixir-ecto/ecto: from cb2f03964dac324a9771f84f5088e395326e6de8 before *
- ecto (Hex): from 3.4.0 before 3.14.3
- https://github.com/elixir-ecto/ecto: from cb2f03964dac324a9771f84f5088e395326e6de8 before d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea; before eef014ad090d27d1a5b69c0e32a50eabd44ab3bb

## Every score

- EEF: CVSS:4.0 8.9 High `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`
- Erlang Ecosystem Foundation: 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`

## References

- <https://github.com/elixir-ecto/ecto/security/advisories/GHSA-cxjx-vmm2-qr8r> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-118391.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-118391> (related)
- <https://ecto.hexdocs.pm/Ecto.Query.API.html#json_extract_path/2> (technical-description, web)
- <https://ecto.hexdocs.pm/Ecto.Query.API.html#splice/1> (technical-description, web)
- <https://github.com/elixir-ecto/ecto/commit/eb03f45b999e2bf67ffae92811233eb6e56dba55> (related, web)
- <https://github.com/elixir-ecto/ecto/issues/4470> (related, web)
- <https://github.com/elixir-ecto/ecto/issues/1031> (related, web)
- <https://github.com/elixir-ecto/ecto/commit/cb2f03964dac324a9771f84f5088e395326e6de8> (related, web)
- <https://github.com/elixir-ecto/ecto/commit/d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea> (fix, patch)
- <https://github.com/elixir-ecto/ecto/commit/eef014ad090d27d1a5b69c0e32a50eabd44ab3bb> (fix, patch)
- <https://hex.pm/packages/ecto> (package)

## Sources

- CVE List: [CVE-2026-118391](https://www.cve.org/CVERecord?id=CVE-2026-118391), CVE Terms of Use, modified 2026-12-02
- Erlang Ecosystem Foundation: [EEF-CVE-2026-118391](https://osv.dev/vulnerability/EEF-CVE-2026-118391), CC-BY-4.0, modified 2026-12-02
- NVD: [CVE-2026-118391](https://nvd.nist.gov/vuln/detail/CVE-2026-118391), Public domain, modified 2026-12-02

---

Page: https://cve.day/CVE-2026-118391 · Whole record: https://cve.day/CVE-2026-118391.json · Rebuilt by cve.day 2026-12-02T04:32:32.362Z
