{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-78691","id":"CVE-2026-78691","title":"Unescaped backslash allows LIKE wildcard injection in AshSql string search","description":"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 ","descriptionLong":"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.","published":"2026-08-30T11:55:20.331Z","updated":"2026-11-19T10:00:25.447567384Z","reserved":"2026-08-30T05:45:01.818Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":2.1,"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","rating":"low","source":"EEF"},"metrics":[{"version":"4.0","score":2.1,"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","rating":"low","source":"EEF"},{"version":"4.0","score":2.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"}],"rating":"low","products":["ash-project ash_sql"],"affectedProducts":[{"vendor":"ash-project","product":"ash_sql","defaultStatus":"unaffected","versions":[{"lessThan":"0.7.1","status":"affected","version":"0.1.1-rc.10","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash_sql","defaultStatus":"unaffected","versions":[{"lessThan":"d95c55c64b1b42cc2fd30211a4913f3145156cd4","status":"affected","version":"cfc7da474c5be2190fd62664a83a689377a8d512","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-943"],"aliases":["EEF-CVE-2026-78691","GHSA-5jgp-7mhc-6qqh"],"references":[{"url":"https://github.com/ash-project/ash_sql/security/advisories/GHSA-5jgp-7mhc-6qqh","tags":["vendor-advisory","related","exploit","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-78691.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-78691","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_sql/commit/cfc7da474c5be2190fd62664a83a689377a8d512","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash_sql/commit/d95c55c64b1b42cc2fd30211a4913f3145156cd4","tags":["patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://repo.hex.pm","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/78xxx/CVE-2026-78691.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78691","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_sql","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00194,"epssPercentile":0.09248,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-78691","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-78691","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-78691","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-78691","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}