Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
ash-project ash_ai
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ash-project 的 ash_ai 中存在代码生成控制不当(代码注入)漏洞,允许远程、未认证的客户机执行任意 Elixir 代码。 通过 评估提示(prompt)内容。文档中记载的 形式的提示,其内容可依据动作参数构建。因此,当提示动作的文本中包含了来自请求的数据时,这些由攻击者控制的文本会被编译并作为 EEx 模板(Elixir 源码)执行。类似 的内容会在向模型发起请求之前就在服务器上执行,且只需访问提示动作即可触发,无需身份验证。该修复措施停止将函数提供的提示内容作为 EEx 进行评估;只有静态配置的模

CVSS 10.0 · Critical
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-77956

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
EEx template evaluation of prompt content in AshAi enables remote code execution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
ash-project ash_ai 0.1.0 ~ 1.0.0 cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*
ash-project ash_ai 4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1 ~ e9948254b5659c1143b73dc2f59f457931e64514 cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-77956

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-77956

登录查看更多情报信息。

Other References for CVE-2026-77956 (4)

IV. Related Vulnerabilities

V. Comments for CVE-2026-77956

No comments yet


Leave a comment