{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-77956",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-08-30T17:30:01.409Z",
        "datePublished": "2026-08-31T00:56:26.440Z",
        "dateUpdated": "2026-08-31T00:56:26.440Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.AshAi.Actions.Prompt'"
                    ],
                    "packageName": "ash_ai",
                    "packageURL": "pkg:hex/ash_ai",
                    "product": "ash_ai",
                    "programFiles": [
                        "lib/ash_ai/actions/prompt.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.AshAi.Actions.Prompt':build_context/3"
                        }
                    ],
                    "repo": "https://github.com/ash-project/ash_ai",
                    "vendor": "ash-project",
                    "versions": [
                        {
                            "lessThan": "1.0.0",
                            "status": "affected",
                            "version": "0.1.0",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.AshAi.Actions.Prompt'"
                    ],
                    "packageName": "ash-project/ash_ai",
                    "packageURL": "pkg:github/ash-project/ash_ai",
                    "product": "ash_ai",
                    "programFiles": [
                        "lib/ash_ai/actions/prompt.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.AshAi.Actions.Prompt':build_context/3"
                        }
                    ],
                    "repo": "https://github.com/ash-project/ash_ai",
                    "vendor": "ash-project",
                    "versions": [
                        {
                            "lessThan": "e9948254b5659c1143b73dc2f59f457931e64514",
                            "status": "affected",
                            "version": "4aab131d40a0bd5a8cf0b3c4eaaa59d49565f3d1",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:ash-project:ash_ai:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "1.0.0",
                                    "versionStartIncluding": "0.1.0",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "reporter",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Zach Daniel / Ash Project"
                },
                {
                    "lang": "en",
                    "type": "coordinator",
                    "value": "Jonatan Männchen / EEF"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Improper Control of Generation of Code (Code Injection) vulnerability in ash-project ash_ai allows a remote, unauthenticated client to execute arbitrary Elixir code.</p>\n<p><code>AshAi.Actions.Prompt</code> evaluates prompt content through <code>EEx.eval_string/2</code>. The documented <code>prompt: fn input, context -&gt; ... end</code> form lets the prompt content be built from action arguments, so when a <code>prompt</code> action's text incorporates request data, that attacker-controlled text is compiled and run as an EEx template (Elixir source). Content such as <code>&lt;%= System.cmd(...) %&gt;</code> 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.</p>\n<p>This issue affects ash_ai: from 0.1.0 before 1.0.0.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "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\n`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.\n\nThis issue affects ash_ai: from 0.1.0 before 1.0.0."
                        }
                    ],
                    "value": "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."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-242",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-242 Code Injection"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "NETWORK",
                        "baseScore": 10,
                        "baseSeverity": "CRITICAL",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "HIGH",
                        "subIntegrityImpact": "HIGH",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "description": "CWE-94 Improper Control of Generation of Code ('Code Injection')",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-08-31T00:56:26.440Z"
            },
            "references": [
                {
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/ash-project/ash_ai/security/advisories/GHSA-2g59-hg7m-qc83"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-77956.html"
                },
                {
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-77956"
                },
                {
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/ash-project/ash_ai/commit/e9948254b5659c1143b73dc2f59f457931e64514"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "EEx template evaluation of prompt content in AshAi enables remote code execution"
        }
    }
}