# CVE-2026-77956: EEx template evaluation of prompt content in AshAi enables remote code execution

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.9
- **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:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-94
- **Published:** 2026-08-31T00:56:26.440Z
- **Modified:** 2026-11-19T09:17:59.673Z

## Who should check

- Anyone running ash-project ash\_ai \>= 0.1.0, \< 1.0.0
- Anyone running ash-project ash\_ai \>= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, \< e9948254b5659c1143b73dc2f59f457931e64514

## 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

- ash-project ash\_ai: \>= 0.1.0, \< 1.0.0 (cvelist)
- ash-project ash\_ai: \>= 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, \< e9948254b5659c1143b73dc2f59f457931e64514 (cvelist)

## Mitigation

- Upgrade ash\_ai to 1.0.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83>
- patch: <https://github.com/ash-project/ash_ai/commit/4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1>
- patch: <https://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514>
- other: <https://cna.erlef.org/cves/CVE-2026-77956.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-77956>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-77956>

HTML: <https://flawdb.com/CVE-2026-77956> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-77956>
