CVE-2026-118391

Source
https://cve.org/CVERecord?id=CVE-2026-118391
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-118391.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-118391
Aliases
Published
2026-11-04T13:57:29Z
Modified
2026-11-13T20:45:34Z
Severity
  • 8.9 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto
Details

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.

Database specific
{
    "cna_assigner":  "EEF",
    "cwe_ids":  [
        "CWE-770"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118391.json"
}
References

Affected packages

Git / github.com/elixir-ecto/ecto

Affected ranges

Type
GIT
Repo
https://github.com/elixir-ecto/ecto
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "cb2f03964dac324a9771f84f5088e395326e6de8"
                },
                {
                    "fixed":  "eef014ad090d27d1a5b69c0e32a50eabd44ab3bb"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "introduced":  "3.4.0"
                },
                {
                    "fixed":  "3.14.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StandardRange"
        },
        {
            "range":  [
                {
                    "fixed":  "d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "eb03f45b999e2bf67ffae92811233eb6e56dba55"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "cb2f03964dac324a9771f84f5088e395326e6de8"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "eef014ad090d27d1a5b69c0e32a50eabd44ab3bb"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

v3.*
v3.10.0
v3.10.1
v3.10.2
v3.4.0
v3.4.1
v3.4.2
v3.4.3
v3.4.4
v3.4.5
v3.5.0
v3.5.0-rc.0
v3.5.0-rc.1
v3.5.1
v3.5.2
v3.5.3
v3.5.4
v3.5.5
v3.6.0
v3.6.1
v3.6.2
v3.7.0
v3.7.1
v3.8.0
v3.8.1
v3.8.2
v3.8.4
v3.9.0
v3.9.1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-118391.json"