Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in the ash_ai component allows unauthenticated attackers to execute code on the server by manipulating prompt content. This occurs because the system improperly evaluates user-supplied prompt text as executable code before processing AI model requests. The main concern is confirming relevance and exposure within your environment.
- Code can run remotely on servers.
- Matters for applications processing AI prompts.
- Verify if your systems use this component.
Attack Path
How an attacker could exploit the issue
An attacker can exploit this vulnerability by sending specially crafted input to a prompt action that incorporates request data. This input is then compiled and executed as Elixir code on the server, potentially allowing the attacker to run arbitrary commands before any model interaction occurs.
- No authentication required to reach the feature.
- Exploited by sending malicious input to a prompt.
- Risk of arbitrary code execution.
Live Threat
Current exploitation, exposure, and threat context
A remote, unauthenticated client could execute arbitrary Elixir code on the server by crafting malicious input for prompt actions. This occurs when prompt content, which can incorporate request data, is evaluated as EEx code before any model request is processed.
- Server-side code execution.
- Prompt input is evaluated as EEx.
- Potential for system compromise.
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners responsible for services using ash_ai should first identify all instances of the affected technology, determine their exposure, and confirm business criticality to prioritize remediation efforts.
- Application owners should own the issue.
- Verify prompt content evaluation.
- Plan vendor coordination and updates.