CVE-2017-20166 · mitre
CVE-2017-20166
Ecto 2.2.0 lacks a certain protection mechanism associated with the interaction between is_nil and raise.
Published 2023-01-10, last changed 2026-06-17. Weakness: CWE-754.
How to fix
Upgrade to a fixed version: ecto 2.2.1 (Hex). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in elixir-ecto/ecto by db55b0cba6, pull request #2125. Functions changed by the fix: query_for_get_by. Regression tests: test/ecto/repo_test.exs. Confidence: verified (a record names this commit as the fix, and it changed these functions).
Timeline
| 2022-04-12 | Package advisory GHSA-2xxx-fhc8-9qvq |
| 2023-01-10 | Published |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.36% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-2xxx-fhc8-9qvq | ecto (Hex) | 2.2.1 |
Also known as: GHSA-2xxx-fhc8-9qvq
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-118391 | 2026-11-04 | 8.9 | Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto |
| CVE-2026-113380 | 2026-10-20 | 9.3 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2025-52136 | 2025-08-10 | 3 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2022-47112 | 2025-04-19 | 3.3 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2022-47111 | 2025-04-19 | 3.3 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2025-43715 | 2025-04-17 | 8.1 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2025-32997 | 2025-04-15 | 5.3 | same weakness (CWE-754) from the same CNA (mitre) |
| CVE-2025-30258 | 2025-03-19 | 4.7 | same weakness (CWE-754) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2017-20166, or call /api/v1/vulnerabilities/CVE-2017-20166. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.