{"vuln_id":"CVE-2026-77956","aliases":["GHSA-2g59-hg7m-qc83"],"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 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_at":"2026-08-31T01:16:49.563000Z","modified_at":"2026-11-19T09:17:59.673000Z","first_seen_at":"2026-11-21T19:15:46.592711Z","severity":"high","severity_source":"nvd","cvss_score":8.9,"cvss_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","cwe":["CWE-94"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00351,"epss_percentile":0.29384,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-77956"},"matched_alias":null,"items":[{"id":3439,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77956: Improper Control of Generation of Code (Code Injection) vulnerability in ash-project ash_ai allows a remote, unauthenticated client to execute arbitrary Elixir…","summary":"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.\n\nReferences:\nhttps://cna.erlef.org/cves/CVE-2026-77956.html\nhttps://github.com/ash-project/ash_ai/commit/4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1\nhttps://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514\nhttps://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83\nhttps://osv.dev/vulnerability/EEF-CVE-2026-77956\nhttps://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77956","published_at":"2026-08-31T01:16:49.563000Z","updated_at":"2026-11-19T09:17:59.673000Z","fetched_at":"2026-11-21T19:15:31.479022Z","severity":"high","cvss_score":8.9,"epss":0.00351,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77956","vuln_ids":["CVE-2026-77956","GHSA-2G59-HG7M-QC83"],"tags":["CWE-94"],"cluster_id":3619,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/3439","html":"https://vulnwatch.ve1ve2.com/item/3439"}}]}