Vulnerabilities in pkg:maven/com.yahoo.elide/elide-datastore-aggregation
PACKAGECVE-2022-24827 is a HIGH (CVSS 8.1) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Elide datastore aggregation libraries in the Maven ecosystem. The issue involves sql injection in elide-datastore-aggregation. Remediation is available by upgrading affected packages to version 6.1.4.
pkg:maven/com.yahoo.elide/elide-datastore-aggregation
Vulnerability advisories affecting package pkg:maven/com.yahoo.elide/elide-datastore-aggregation. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-8xpj-9j9g-fc9r | CVE-2022-24827 | HIGH | SQL Injection in elide-datastore-aggregation |
CVE-2022-24827 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-24827
To remediate this vulnerability, upgrade all affected Elide datastore aggregation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.yahoo.elide</groupId>
<artifactId>elide-datastore-aggregation</artifactId>
<version>6.1.4</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.yahoo.elide
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2022-24827, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.yahoo.elide
Analyze the terminal output to locate any version of Elide datastore aggregation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.4), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.yahoo.elide command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Elide datastore aggregation, 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
CVE-2022-24827 Affected Elide datastore aggregation Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.yahoo.elide:elide-datastore-aggregation
|
Maven |
≥ 6.1.3
< 6.1.4
All 1 versions
6.1.3
|
6.1.4
|
References
Frequently Asked Questions
What is CVE-2022-24827?
Which Elide datastore aggregation versions are affected?
What version fixes CVE-2022-24827?
Is elide-datastore-aggregation affected?
What is the CVSS score of CVE-2022-24827?
What CWE is associated with CVE-2022-24827?
How can I check Maven dependencies for CVE-2022-24827?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8xpj-9j9g-fc9r",
"modified" : "2022-04-18T22:19:44Z",
"published" : "2022-04-08T22:43:17Z",
"aliases" : [ "CVE-2022-24827" ],
"summary" : "SQL Injection in elide-datastore-aggregation",
"details" : "### Impact\nWhen leveraging the following together:\n\n- Elide Aggregation Data Store for Analytic Queries\n- Parameterized Columns (A column that requires a client provided parameter)\n- A parameterized column of type TEXT\n\nThere 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.\n\n### Patches\nA [fix](https://github.com/yahoo/elide/pull/2581) is provided in [Elide 6.1.4](https://github.com/yahoo/elide/releases/tag/6.1.4).\n\n### Workarounds\nThe 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.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [elide](https://github.com/yahoo/elide)\n* Contact us in [Discord](https://discord.com/invite/3vh8ac57cc)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.yahoo.elide:elide-datastore-aggregation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.1.3"
}, {
"fixed" : "6.1.4"
} ]
} ],
"versions" : [ "6.1.3" ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/yahoo/elide/security/advisories/GHSA-8xpj-9j9g-fc9r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-24827"
}, {
"type" : "WEB",
"url" : "https://github.com/yahoo/elide/pull/2581"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/yahoo/elide"
}, {
"type" : "WEB",
"url" : "https://github.com/yahoo/elide/releases/tag/6.1.4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2022-04-08T22:43:17Z",
"nvd_published_at" : "2022-04-11T21:15:00Z"
}
}