{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-77956","id":"CVE-2026-77956","title":"EEx template evaluation of prompt content in AshAi enables remote code execution","description":"Improper Control of Generation of Code (Code Injection) vulnerability in ash-project ash_ai allows a remote, unauthenticated client to execute arbitrary Elixir code.\n\nAshAi.Actions.Prompt evaluates prompt content through EEx.eval_string/2. The documented prompt: fn input, context -> ... end form lets the prompt content be built from action arguments, so when a prompt action's text incorporates req","descriptionLong":"Improper Control of Generation of Code (Code Injection) vulnerability in ash-project ash_ai allows a remote, unauthenticated client to execute arbitrary Elixir code.\n\nAshAi.Actions.Prompt evaluates prompt content through EEx.eval_string/2. The documented prompt: fn input, context -> ... end form lets the prompt content be built from action arguments, so when a prompt action's text incorporates request data, that attacker-controlled text is compiled and run as an EEx template (Elixir source). Content such as <%= System.cmd(...) %> therefore executes on the server before any model request is made, requiring no authentication beyond reaching a prompt action. The fix stops evaluating function-supplied prompt content as EEx; only statically configured templates are evaluated.\n\nThis issue affects ash_ai: from 0.1.0 before 1.0.0.","published":"2026-08-31T00:56:26.440Z","updated":"2026-11-19T10:00:17.961035661Z","reserved":"2026-08-30T17:30:01.409Z","status":"Deferred","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":8.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"high","source":"EEF"},"metrics":[{"version":"4.0","score":8.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"high","source":"EEF"},{"version":"4.0","score":8.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/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":"high","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:H/VI:H/VA:H/SC:H/SI:H/SA:H","rating":"unrated","source":"OSV"}],"rating":"high","products":["ash-project ash_ai"],"affectedProducts":[{"vendor":"ash-project","product":"ash_ai","defaultStatus":"unaffected","versions":[{"lessThan":"1.0.0","status":"affected","version":"0.1.0","versionType":"semver"}],"platforms":[]},{"vendor":"ash-project","product":"ash_ai","defaultStatus":"unaffected","versions":[{"lessThan":"e9948254b5659c1143b73dc2f59f457931e64514","status":"affected","version":"4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-94"],"aliases":["EEF-CVE-2026-77956","GHSA-2g59-hg7m-qc83"],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83","tags":["vendor-advisory","related","exploit","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-77956.html","tags":["related","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77956","tags":["related","web"]},{"url":"https://github.com/ash-project/ash_ai/commit/4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1","tags":["related","fix"]},{"url":"https://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514","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/77xxx/CVE-2026-77956.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77956","tags":["advisory"]},{"url":"https://github.com/ash-project/ash_ai","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00351,"epssPercentile":0.29415,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-77956","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77956","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-77956","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-77956","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}