Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto

State
Published
Severity
8.9 High
Published
Nov 4, 2026
Updated
Nov 5, 2026
Reserved
Oct 30, 2026

Read the record on cve.org

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.

ProductVersions
ecto elixir-ecto3.4.0 to before 3.14.3 Affected
ecto elixir-ectocb2f03964dac324a9771f84f5088e395326e6de8 to before eef014ad090d27d1a5b69c0e32a50eabd44ab3bb Affected

Weaknesses

  • CWE-770 Allocation of Resources Without Limits or Throttling

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.