CVE-2026-77956

EEx template evaluation of prompt content in AshAi enables remote code execution

8.9 high EPSS 0.35%

Published 31 Aug 2026 Updated 19 Nov 2026 CNA: EEF

Check your servers for CVE-2026-77956

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-77956 affects ash_ai, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

8.9 high CVSS 4.0 from EEF (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
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Attack requirements
present: an attack works only when the target is in a certain state or configuration
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality high, integrity high, availability high: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality high, integrity high, availability high: what an attacker can read, change or stop beyond it

Exploitation

EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 31 Aug 2026):

Exploitation
poc: a proof of concept is public
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-94 Improper Control of Generation of Code

Affected products

As the CNA lists them.

ProductVersions
ash_ai
package ash_ai
affected from 0.1.0, before 1.0.0
Other versions: unaffected
ash_ai
package ash-project/ash_ai
affected from 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1, before e9948254b5659c1143b73dc2f59f457931e64514
Other versions: unaffected

Is my server affected?

Find the installed version of ash_ai and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i ash_ai
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-77956 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-77956

RHEL, Rocky, Alma, Fedora

rpm -q ash_ai
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-77956

Alpine

apk list --installed | grep -i ash_ai

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-77956
trivy image --scanners vuln IMAGE | grep CVE-2026-77956

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Patches and release notes

Exploits and proof of concept

Other references

Source: the record CVE-2026-77956 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.