Ecto に未認証の遠隔攻撃者によりメモリを枯渇させられる脆弱性
Summary
Ecto の 3.4.0 から 3.14.3 より前のバージョンに、リクエストを大量に送られるとアプリケーションとデータベースサーバーのメモリを使い果たされる脆弱性があります。攻撃には認証が不要で、CVSS v4 のスコアは 8.9 です。修正版の 3.14.3 に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Ecto の 3.4.0 から 3.14.3 より前のバージョンに、リクエストを大量に送られるとアプリケーションとデータベースサーバーのメモリを使い果たされる脆弱性があります。攻撃には認証が不要で、CVSS v4 のスコアは 8.9 です。修正版の 3.14.3 に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| elixir-ectoecto |
≥ cb2f03964dac324a9771f84f5088e395326e6de8 (no fix yet)→ d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea, eef014ad090d27d1a5b69c0e32a50eabd44ab3bb |
d0e97d8a6e274c81c25fbf08087da8d8b9bae0ea, eef014ad090d27d1a5b69c0e32a50eabd44ab3bb |
| Hexecto |
≥ 3.4.0, < 3.14.3→ 3.14.3 |
3.14.3 |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package hex.pm
- package github.com
- web github.com
- web cna.erlef.org
- web osv.dev
- web github.com
- web ecto.hexdocs.pm
- web ecto.hexdocs.pm
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web repo.hex.pm