{"id":"CVE-2022-24827","published":"2022-04-11T20:13:40Z","modified":"2025-04-23T18:41:00Z","title":"SQL Injection in elide-datastore-aggregation","vendor":"yahoo","product":"elide","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01389,"percentile":0.72987,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/yahoo/elide/security/advisories/GHSA-8xpj-9j9g-fc9r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yahoo/elide/pull/2581","tags":["x_refsource_MISC"]},{"url":"https://github.com/yahoo/elide/releases/tag/6.1.4","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":14.6},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"yahoo","affectedVersions":[{"vendor":"yahoo","product":"elide","versions":["= 6.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:54:40.590453Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"com.yahoo.elide:elide-datastore-aggregation","vulnerableRanges":[">=6.1.3, <6.1.4"],"patched":["6.1.4"],"from":["GHSA-8xpj-9j9g-fc9r"],"provenance":"source"}],"summary":{"text":"Elide, a Java library for building GraphQL and JSON-API web services by Yahoo, has an SQL injection flaw in its Aggregation Data Store used for analytic queries, specifically when a parameterized column of type TEXT is involved. An unauthenticated remote attacker who can send a crafted query, with no user interaction and under the specific configuration of a parameterized TEXT column used for analytic queries, can use the '-' character to form an SQL comment that strips the WHERE clause and bypasses server-side authorization filters.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:34Z"},"euvd":{"id":"EUVD-2022-1685","exploited":false,"provenance":"source"}}