PatchSiren cyber security CVE debrief
CVE-2026-118391 elixir-ecto CVE debrief
CVE-2026-118391 is an Allocation of Resources Without Limits or Throttling vulnerability in elixir-ecto ecto. An unauthenticated remote attacker can exhaust memory in the application and database server by sending requests with distinct JSON keys or list lengths. This issue affects ecto from 3.4.0 before 3.14.3. The vulnerability allows an unauthenticated remote attacker to exhaust memory in the application and database server by sending requests with distinct JSON keys or list lengths. This is due to ecto caching prepared queries per repository in an ETS table with no size limit and no eviction.
- Vendor
- elixir-ecto
- Product
- ecto
- CVSS
- HIGH 8.9
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-04
- Original CVE updated
- 2026-11-12
- Advisory published
- 2026-11-04
- Advisory updated
- 2026-11-12
Who should care
Defenders responsible for elixir-ecto ecto deployments should assess exposure and prioritize remediation. Defenders should prioritize verifying exposure, assessing inventory, and applying remediation to affected systems. This includes reviewing compensating controls for exposed systems while remediation is scheduled and verified.
Why it matters
CVE-2026-118391 is a high-severity vulnerability in elixir-ecto ecto that can lead to memory exhaustion and potential denial of service. Defenders should prioritize verifying exposure, assessing inventory, and applying remediation to affected systems.
- Memory exhaustion in application and database server
- Potential denial of service due to resource depletion
- Need for verification of exposure and remediation
Technical summary
The vulnerability allows an unauthenticated remote attacker to exhaust memory in the application and database server by sending requests with distinct JSON keys or list lengths. This is due to ecto caching 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.
Defensive priority
Defenders should prioritize verifying exposure, assessing inventory, and applying remediation to affected systems.
Recommended defensive actions
- Verify exposure by assessing inventory and checking for affected versions
- Apply remediation to affected systems by upgrading to ecto version 3.14.3 or later
- Monitor for potential memory exhaustion and adjust resource limits as needed
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and source references provide details on the vulnerability, affected versions, and potential impacts. 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.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-118391 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-118391
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-118391 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-118391
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://cna.erlef.org/cves/CVE-2026-118391.html
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://ecto.hexdocs.pm/Ecto.Query.API.html
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/commit/cb2f03964dac324a9771f84f5088e395326e6de8
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/commit/d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/commit/eb03f45b999e2bf67ffae92811233eb6e56dba55
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/commit/eef014ad090d27d1a5b69c0e32a50eabd44ab3bb
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/issues/1031
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/elixir-ecto/ecto/issues/4470
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.