CVE-2026-118391
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.
Weakness
- CWE-770: Allocation of Resources Without Limits or Throttling
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | partial |
| Scored | 2026-11-04 |
Timeline
- 2026-11-04Published by the CNA13:57 UTC
- 2026-11-04CISA SSVC decision recordedsame day
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| elixir-ecto ecto | from 3.4.0 before 3.14.3fixed in 3.14.3 | 3.14.3 |
References
- https://github.com/elixir-ecto/ecto/commit/d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea
- https://github.com/elixir-ecto/ecto/commit/eef014ad090d27d1a5b69c0e32a50eabd44ab3bb
- https://github.com/elixir-ecto/ecto/security/advisories/GHSA-cxjx-vmm2-qr8r
- https://cna.erlef.org/cves/CVE-2026-118391.html
- https://ecto.hexdocs.pm/Ecto.Query.API.html#json_extract_path/2
- https://ecto.hexdocs.pm/Ecto.Query.API.html#splice/1
- https://github.com/elixir-ecto/ecto/commit/cb2f03964dac324a9771f84f5088e395326e6de8
- https://github.com/elixir-ecto/ecto/commit/eb03f45b999e2bf67ffae92811233eb6e56dba55
- https://github.com/elixir-ecto/ecto/issues/1031
- https://github.com/elixir-ecto/ecto/issues/4470
- https://osv.dev/vulnerability/EEF-CVE-2026-118391
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-118391'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-118391'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-118391'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-118391'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).