CVE-2022-24827 SQL Injection in elide-datastore-aggregation
Attackers can bypass server-side authorization filters via SQL injection in Elide's aggregation datastore when using parameterized TEXT columns.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24827?
CVE-2022-24827 is a high-severity SQL injection vulnerability in yahoo elide, published on 11 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Elide is a Java library that lets you stand up a GraphQL/JSON-API web service with minimal effort. When leveraging the following together: Elide Aggregation Data Store for Analytic Queries, Parameterized Columns (A column that requires a client provided parameter), and a parameterized column of type TEXT. There is the potential for a hacker to provide a carefully crafted query that would bypass server side authorization filters through SQL injection. A recent patch to Elide 6.1.2 allowed the '-' character to be included in parameterized TEXT columns. This character can be interpreted as SQL comments ('--') and allow the attacker to remove the WHERE clause from the generated query and bypass authorization filters. A fix is provided in Elide 6.1.4. The vulnerability only exists for parameterized columns of type TEXT and only for analytic queries (CRUD is not impacted). Workarounds include leveraging a different type of parameterized column (TIME, MONEY, etc) or not leveraging parameterized columns.
Weakness: CWE-89
Which versions are affected by CVE-2022-24827?
2 open source packages ship an affected version, including com.yahoo.elide:elide-datastore-aggregation. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.yahoo.elide:elide-datastore-aggregation Maven | From 6.1.3 | 6.1.4 |
com.yahoo.elide:elide-datastore-aggregation Maven | From 6.1.3 | 6.1.4 |
Products include Elide Elide.
How do I fix CVE-2022-24827?
Upgrade com.yahoo.elide:elide-datastore-aggregation to 6.1.4 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2022-24827 being exploited?
There is no known exploitation of CVE-2022-24827 in the wild and no public exploit code.
Other vulnerabilities in yahoo elide
Sources
Also known as GHSA-8xpj-9j9g-fc9r.