KeygraphLabs · CVE MCP

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.

CVSS
9.8
critical, from NVD
EPSS
1.36%
percentile 72.8%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-12Package advisory GHSA-2xxx-fhc8-9qvq
2023-01-10Published
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.36%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-2xxx-fhc8-9qvqecto (Hex)2.2.1

Also known as: GHSA-2xxx-fhc8-9qvq

Related

CVEPublishedCVSSSummary
CVE-2026-1183912026-11-048.9Unbounded query cache growth from interpolated JSON paths and splice lists in Ecto
CVE-2026-1133802026-10-209.3same weakness (CWE-754) from the same CNA (mitre)
CVE-2025-521362025-08-103same weakness (CWE-754) from the same CNA (mitre)
CVE-2022-471122025-04-193.3same weakness (CWE-754) from the same CNA (mitre)
CVE-2022-471112025-04-193.3same weakness (CWE-754) from the same CNA (mitre)
CVE-2025-437152025-04-178.1same weakness (CWE-754) from the same CNA (mitre)
CVE-2025-329972025-04-155.3same weakness (CWE-754) from the same CNA (mitre)
CVE-2025-302582025-03-194.7same 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.

NVD · CVE.org