CVE-2017-20166 Ecto missing `is_nil` requirement
Ecto library lacks protection in is_nil and raise interaction, potentially causing denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2017-20166?
CVE-2017-20166 is a critical vulnerability in n/a, published on 10 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Ecto 2.2.0 lacks a certain protection mechanism associated with the interaction between is_nil and raise.
Weakness: CWE-754
Which versions are affected by CVE-2017-20166?
2 open source packages ship an affected version, including ecto. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ecto Hex | From 2.2.0 | 2.2.1 |
ecto Hex | From 2.2.0 | 2.2.1 |
Products include Ecto Project Ecto.
How do I fix CVE-2017-20166?
Upgrade ecto to 2.2.1 or later.
Is CVE-2017-20166 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2017-20166 exists.
Sources
Also known as GHSA-2xxx-fhc8-9qvq.