{"id":"CVE-2026-78691","aliases":["CVE-2026-78691","EEF-CVE-2026-78691","GHSA-5jgp-7mhc-6qqh"],"related":[],"kind":"vulnerability","state":"published","title":"Unescaped backslash allows LIKE wildcard injection in AshSql string search","summary":"Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sql allows a user who supplies a search term to contains/2, string_starts_with/2, or string_ends_with/2 to inject live SQL LIKE wildcards, turning a literal substring search into an attacker-controlled pattern match.\n\nThe escape helpers in AshSql.Expr prefix % and _ with a backslash but never escape a backslash already present in the input. Because backslash is the default LIKE escape character, the escaping defeats itself: the input \\% becomes the pattern fragment \\\\%, where \\\\ is a literal backslash and the attacker's % remains a live wildcard. The search value stays parameterized, so this is confined to the LIKE pattern grammar rather than full SQL. An attacker can widen matches to probe values, slip past a negated contains(...) guard, or crash the query with a trailing lone backslash.\n\nThis issue affects ash_sql: from 0.1.1-rc.10 before 0.7.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sql allows a user who supplies a search term to contains/2, string_starts_with/2, or string_ends_with/2 to inject live SQL LIKE wildcards, turning a literal substring search into an attacker-controlled pattern match.\n\nThe escape helpers in AshSql.Expr prefix % and _ with a backslash but never escape a backslash already present in the input. Because backslash is the default LIKE escape character, the escaping defeats itself: the input \\% becomes the pattern fragment \\\\%, where \\\\ is a literal backslash and the attacker's % remains a live wildcard. The search value stays parameterized, so this is confined to the LIKE pattern grammar rather than full SQL. An attacker can widen matches to probe values, slip past a negated contains(...) guard, or crash the query with a trailing lone backslash.\n\nThis issue affects ash_sql: from 0.1.1-rc.10 before 0.7.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Neutralization of Special Elements in Data Query Logic vulnerability in ash-project ash_sql allows a user who supplies a search term to `contains/2`, `string_starts_with/2`, or `string_ends_with/2` to inject live SQL `LIKE` wildcards, turning a literal substring search into an attacker-controlled pattern match.\n\nThe escape helpers in `AshSql.Expr` prefix `%` and `_` with a backslash but never escape a backslash already present in the input. Because backslash is the default `LIKE` escape character, the escaping defeats itself: the input `\\%` becomes the pattern fragment `\\\\%`, where `\\\\` is a literal backslash and the attacker's `%` remains a live wildcard. The search value stays parameterized, so this is confined to the LIKE pattern grammar rather than full SQL. An attacker can widen matches to probe values, slip past a negated `contains(...)` guard, or crash the query with a trailing lone backslash.\n\nThis issue affects ash_sql: from 0.1.1-rc.10 before 0.7.1.\n\n## Configurations\n\nAn application must pass untrusted input as the search term of `contains/2`, `string_starts_with/2`, or `string_ends_with/2` (for example a user-controlled substring search).","format":"markdown","source":"eef"}],"published":"2026-08-30T11:55:20.331Z","modified":"2026-11-25T06:31:02.444Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":2.1,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","score":2.1,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N"}],"cwes":["CWE-943"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.1-rc.10","fixed":"0.7.1","status":"affected"}],"vendor":"ash-project","product":"ash_sql","package":"ash_sql","cpe":"cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_sql","source":"cvelist"},{"ranges":[{"type":"git","introduced":"cfc7da474c5be2190fd62664a83a689377a8d512","fixed":"d95c55c64b1b42cc2fd30211a4913f3145156cd4","status":"affected"}],"vendor":"ash-project","product":"ash_sql","package":"ash-project/ash_sql","cpe":"cpe:2.3:a:ash-project:ash_sql:*:*:*:*:*:*:*:*","repo":"https://github.com/ash-project/ash_sql","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.1-rc.10","status":"affected","fixed":"0.7.1"}],"ecosystem":"Hex","package":"ash_sql","purl":"pkg:hex/ash_sql","source":"eef"},{"ranges":[{"type":"git","introduced":"cfc7da474c5be2190fd62664a83a689377a8d512","status":"affected","fixed":"d95c55c64b1b42cc2fd30211a4913f3145156cd4"}],"repo":"https://github.com/ash-project/ash_sql","source":"eef"}],"references":[{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-5jgp-7mhc-6qqh","tags":["advisory","exploit","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-78691.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78691","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ash-project/ash_sql/commit/cfc7da474c5be2190fd62664a83a689377a8d512","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ash-project/ash_sql/commit/d95c55c64b1b42cc2fd30211a4913f3145156cd4","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/ash_sql","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Zach Daniel / Ash Project"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-31T14:57:20.454Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-78691","url":"https://www.cve.org/CVERecord?id=CVE-2026-78691","licence":"CVE Terms of Use","modified":"2026-11-19T08:41:01.056Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-78691","url":"https://osv.dev/vulnerability/EEF-CVE-2026-78691","licence":"CC-BY-4.0","modified":"2026-11-25T06:31:02.444Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-78691","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78691","licence":"Public domain","modified":"2026-11-19T09:18:00.893Z"}],"updatedAt":"2026-11-25T22:59:35.761Z","epss":{"score":0.00194,"percentile":0.09596,"date":"2026-12-01T12:00:22.000Z"}}