{"id":"EEF-CVE-2026-77956","aliases":["CVE-2026-77956","GHSA-2g59-hg7m-qc83"],"title":"EEx template evaluation of prompt content in AshAi enables remote code execution","titleSource":"EEF","descriptionSource":"OSV","description":"## Summary\n\nImproper Control of Generation of Code (Code Injection) vulnerability in ash-project ash_ai allows a remote, unauthenticated client to execute arbitrary Elixir code.\n\n`AshAi.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.","severity":"high","score":8.9,"published":"2026-08-31T00:56:26.440Z","modified":"2026-11-26T17:23:12.214Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Hex","name":"ash_ai","sources":[{"name":"OSV · EEF-CVE-2026-77956","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77956"}],"ranges":[{"events":[{"introduced":"0.1.0"},{"fixed":"1.0.0"}],"type":"SEMVER"}],"versions":["0.1.0","0.1.1","0.1.10","0.1.11","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","0.2.0","0.2.1","0.2.10","0.2.11","0.2.12","0.2.13","0.2.14","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.2.7","0.2.8","0.2.9","0.3.0","0.4.0","0.5.0","0.6.0","0.6.1","0.7.0","0.7.1","0.7.2","0.7.3","0.8.0","0.8.1","0.8.2"],"fixed":["1.0.0"]}],"sourceAffected":[{"ranges":[{"events":[{"introduced":"4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1"},{"fixed":"e9948254b5659c1143b73dc2f59f457931e64514"}],"type":"GIT","repo":"https://github.com/ash-project/ash_ai"}],"versions":["v0.8.2","v0.8.1","v0.8.0","v0.7.3","v0.7.2","v0.7.1","v0.7.0","v0.6.1","v0.6.0","v0.5.0","v0.4.0","v0.3.0","v0.2.14","v0.2.13","v0.2.12","v0.2.11","v0.2.10","v0.2.9","v0.2.8","v0.2.7","v0.2.6","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.1.11","v0.1.10","v0.1.9","v0.1.8","v0.1.7","v0.1.6","v0.1.5","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0"]}],"references":["https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83","https://cna.erlef.org/cves/CVE-2026-77956.html","https://osv.dev/vulnerability/EEF-CVE-2026-77956","https://github.com/ash-project/ash_ai/commit/4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1","https://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514","https://hex.pm/packages/ash_ai"],"sources":[{"name":"CVE","id":"CVE-2026-77956","modified":"2026-11-19T08:39:50.450Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-77956"},{"name":"OSV","id":"EEF-CVE-2026-77956","modified":"2026-11-26T17:23:12.214970486Z","url":"https://osv.dev/vulnerability/EEF-CVE-2026-77956"}],"assessments":[{"source":"EEF","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","score":8.9},{"source":"OSV","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","score":8.9}],"cve":{"records":[{"id":"CVE-2026-77956","source":"EEF","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-30T17:30:01.409Z","published":"2026-08-31T00:56:26.440Z","modified":"2026-11-19T08:39:50.450Z"}],"publishers":[{"name":"EEF","role":"CNA","organizationId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","modified":"2026-11-19T08:39:50.450Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-08-31T16:01:41.879Z"}],"references":[{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83","tags":["vendor-advisory","related"],"source":"EEF"},{"url":"https://cna.erlef.org/cves/CVE-2026-77956.html","tags":["related"],"source":"EEF"},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-77956","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/commit/4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1","tags":["related"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514","tags":["patch"],"source":"EEF"},{"url":"https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-94","description":"CWE-94 Improper Control of Generation of Code","source":"EEF"}],"applicability":[{"source":"EEF","statements":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*","versionEndExcluding":"1.0.0","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}]}],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-08-31T16:01:20.485407Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"no"},{"name":"Technical Impact","value":"total"}]}]},"products":[{"vendor":"ash-project","name":"ash_ai","platforms":[],"versions":[{"version":"0.1.0","status":"affected","lessThan":"1.0.0","versionType":"semver"}],"defaultStatus":"unaffected","packageURL":"pkg:hex/ash_ai","packageIdentity":{"ecosystem":"Hex","name":"ash_ai"},"cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-77956"},{"vendor":"ash-project","name":"ash_ai","platforms":[],"versions":[{"version":"4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1","status":"affected","lessThan":"e9948254b5659c1143b73dc2f59f457931e64514","versionType":"git"}],"defaultStatus":"unaffected","packageURL":"pkg:github/ash-project/ash_ai","cpes":["cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"],"source":"EEF","url":"https://www.cve.org/CVERecord?id=CVE-2026-77956"}],"remediation":[],"observedAt":"2026-11-26T17:36:19.139Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T01:05:30.647Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T08:10:33.638Z","attemptedAt":"2026-11-20T08:10:33.638Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-20T08:10:32.842Z","attemptedAt":"2026-11-20T08:10:32.842Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-20T08:00:36.692Z","attemptedAt":"2026-11-20T08:00:36.692Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-20T08:00:35.489Z","attemptedAt":"2026-11-20T08:00:35.489Z"}],"evidence":[{"source":"FIRST EPSS","id":"CVE-2026-77956","url":"https://www.first.org/epss/","probability":0.00351,"percentile":0.29415,"date":"2026-11-19","checkedAt":"2026-11-20T08:00:35.489Z"},{"source":"ENISA EUVD","id":"EUVD-2026-68303","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-68303","modified":"Nov 19, 2026, 8:39:50 AM","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","checkedAt":"2026-11-20T08:00:36.692Z"},{"source":"NVD","id":"CVE-2026-77956","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77956","modified":"2026-11-19T09:17:59.673","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","checkedAt":"2026-11-20T08:10:33.638Z"}],"aiSummary":null}