CVE-2026-77956
EEx template evaluation of prompt content in AshAi enables remote code execution
Mitigation
- Upgrade ash_ai to 1.0.0 or later.
Who should check
- Anyone running ash-project ash_ai >= 0.1.0, < 1.0.0
- Anyone running ash-project ash_ai >= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, < e9948254b5659c1143b73dc2f59f457931e64514
Vulnerability facts
- Affected
- ash-project ash_ai >= 0.1.0, < 1.0.0; ash-project ash_ai >= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, < e9948254b5659c1143b73dc2f59f457931e64514
- Fixed in
- ash-project ash_ai 1.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-94
- Modified
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. 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. This issue affects ash_ai: from 0.1.0 before 1.0.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| ash-project ash_ai | >= 0.1.0, < 1.0.0 | — | cvelist |
| ash-project ash_ai | >= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, < e9948254b5659c1143b73dc2f59f457931e64514 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-77956. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-77956.md Affected: ash-project ash_ai >= 0.1.0, < 1.0.0; ash-project ash_ai >= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, < e9948254b5659c1143b73dc2f59f457931e64514 Fixed in: ash-project ash_ai 1.0.0 Steps: 1. Search this machine and project for ash-project ash_ai: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-77956 being exploited?
There is no confirmed exploitation: CVE-2026-77956 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-77956?
High: CVSS 8.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-77956?
ash-project ash_ai >= 0.1.0, < 1.0.0; ash-project ash_ai >= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, < e9948254b5659c1143b73dc2f59f457931e64514.
Is there a fix for CVE-2026-77956?
Yes. Fixed in ash-project ash_ai 1.0.0. Upgrade ash_ai to 1.0.0 or later.
How do I check if I'm affected by CVE-2026-77956?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.