GHSA-4r2f-6fm9-2qgh: Duplicate Advisory Ecto Lacks A Protection Mechanism Vulnerability
CRITICALGHSA-4r2f-6fm9-2qgh is a CRITICAL (CVSS 9.8) ecto lacks a protection mechanism vulnerability (General Security Weakness) affecting Duplicate Advisory libraries in the Hex ecosystem. The issue involves ecto lacks a protection mechanism. Remediation is available by upgrading affected packages to version 2.2.1.
GHSA-4r2f-6fm9-2qgh at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-4r2f-6fm9-2qgh
To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade ecto to 2.2.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for ecto
How to Check if You Are Affected
To determine whether your application is affected by GHSA-4r2f-6fm9-2qgh, inspect your project dependencies for Duplicate Advisory:
inspect dependencies for ecto
Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.2.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-4r2f-6fm9-2qgh Affected Duplicate Advisory Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ecto
|
Hex |
≥ 2.2.0
< 2.2.1
All 1 versions
2.2.0
|
2.2.1
|
References
Frequently Asked Questions
What is GHSA-4r2f-6fm9-2qgh?
Which Duplicate Advisory versions are affected?
What version fixes GHSA-4r2f-6fm9-2qgh?
Is ecto affected?
What is the CVSS score of GHSA-4r2f-6fm9-2qgh?
What CWE is associated with GHSA-4r2f-6fm9-2qgh?
How can I check Hex dependencies for GHSA-4r2f-6fm9-2qgh?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4r2f-6fm9-2qgh",
"modified" : "2026-01-22T20:38:52Z",
"published" : "2023-01-10T06:30:25Z",
"withdrawn" : "2026-01-22T20:38:52Z",
"aliases" : [ ],
"summary" : "Duplicate Advisory: Ecto lacks a protection mechanism",
"details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-2xxx-fhc8-9qvq. This link is maintained to preserve external references.\n\n## Original Description\nEcto 2.2.0 lacks a certain protection mechanism associated with the interaction between `is_nil` and `raise`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Hex",
"name" : "ecto"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.1"
} ]
} ],
"versions" : [ "2.2.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-20166"
}, {
"type" : "WEB",
"url" : "https://github.com/elixir-ecto/ecto/pull/2125"
}, {
"type" : "WEB",
"url" : "https://github.com/elixir-ecto/ecto/commit/db55b0cba6525c24ebddc88ef9ae0c1c00620250"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-2xxx-fhc8-9qvq"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/elixir-ecto/ecto"
}, {
"type" : "WEB",
"url" : "https://groups.google.com/forum/#!topic/elixir-ecto/0m4NPfg_MMU"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-10T22:16:53Z",
"nvd_published_at" : "2023-01-10T06:15:00Z"
}
}