Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious LLM prompt
-
DeliveryInject Python exploit into generation output
-
ExploitVictim runs PPTAgent with malicious input
-
Executioneval() executes code with builtins
-
PersistArbitrary command execution as application user
-
ImpactExfiltrate data or establish persistence
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Eval input sanitization
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to run PPTAgent locally and process presentation generation requests that include attacker-influenced content reaching the execute_actions() eval() call. Specific prerequisites: the application must be pre-patch commit 418491a, the user must initiate a presentation generation workflow (UI:R), and the LLM output must contain code strings that reach the vulnerable eval() statement. Attack is local vector (AV:L) requiring the attacker to influence the LLM input/output pipeline, either by compromising the LLM provider, manipulating prompts in shared environments, or social engineering the victim to process malicious generation tasks. No network service exposure or authentication bypass is required (PR:N), but the attacker must have a mechanism to control or inject code into the agentic workflow. Exploitation is limited to environments where PPTAgent is actively used for LLM-driven presentation generation; installations not invoking execute_actions() are unaffected. |
| Impact | CVSS 8.6 (High) reflects severe impact (C:H/I:H/A:H with scope change) but attack complexity is constrained by local vector (AV:L), no privileges required (PR:N), and mandatory user interaction (UI:R). The victim must run PPTAgent with malicious LLM output or a compromised model that injects exploit code. Real-world risk depends on deployment context: highest for installations using untrusted LLM providers, public model APIs, or user-supplied prompts that could be adversarially crafted. The Changed scope (S:C) indicates sandbox escape potential beyond the application's security context. EPSS and KEV data not provided, but absence from CISA KEV and lack of public POC suggest no widespread exploitation. However, the Python eval() pattern with builtins is a well-understood attack primitive, making exploitation straightforward once an attacker controls LLM input or output. Primary risk is supply chain compromise of the LLM layer or social engineering attacks where users process malicious presentation generation requests. Organizations using PPTAgent in automated pipelines with external LLM APIs face elevated risk of silent code injection. |
| Exploit ScenarioDerived | An attacker crafts a malicious prompt or compromises an LLM provider to inject Python exploit code into PPTAgent's generation pipeline. When PPTAgent processes the LLM response, the execute_actions() function passes the attacker-controlled string to eval() with builtins in scope. The injected code uses __import__('os').system('malicious_command') to execute arbitrary shell commands with the privileges of the PPTAgent process, potentially exfiltrating files, installing backdoors, or pivoting to other systems. Public exploit code existence is not confirmed from available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 04, 2026
Arbitrary code execution in PPTAgent allows local attackers to execute Python code by exploiting unsafe eval() of LLM-generated content with unrestricted builtins. The framework's agentic architecture passes AI-generated code directly to eval() with full builtin access, enabling execution of arbitrary system commands. Patch available via commit 418491a which restricts eval() globals to an empty builtins dictionary and adds path traversal protections. CVSS 8.6 with local attack vector and user interaction requirement; no evidence of active exploitation or public POC at time of analysis.
RemediationAI
Update to PPTAgent commit 418491a or later by pulling the latest code from the GitHub repository at https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00. The patch replaces unsafe eval() calls with restricted globals (SAFE_EVAL_GLOBALS = {'__builtins__': {}}) and adds resolve_path_in_workspace() to prevent path traversal attacks. If immediate patching is not feasible, implement compensating controls: restrict PPTAgent execution to isolated containers or VMs with no network access, validate and sanitize all LLM-generated code through static analysis before execution, or disable dynamic code execution features entirely if presentation generation can operate without eval(). Note that disabling eval() may break core framework functionality. Run PPTAgent under least-privilege service accounts with no access to sensitive files or credentials. Monitor process execution for unexpected child processes (shells, network tools) spawned by Python. These workarounds reduce but do not eliminate risk; patching is the only complete mitigation. Refer to GHSA-89g2-xw5c-v95p for vendor guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PPTAgent (cpe:2.3:a:icip-cas:pptagent) is an agentic framework that uses LLMs to generate PowerPoint presentations by dynamically executing Python code. The vulnerability stems from CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code) in the execute_actions() function within pptagent/apis.py. The code called eval(line, {}, {func: partial_func}), passing an empty globals dictionary but leaving __builtins__ implicitly available in scope. In Python, eval() with empty globals still has access to all builtin functions (open, exec, __import__, etc.) unless explicitly restricted. This allowed LLM-generated malicious code strings to invoke arbitrary builtins for file system access, module imports, or subprocess execution. The patch replaces the empty globals with SAFE_EVAL_GLOBALS = {'__builtins__': {}} to explicitly remove builtin access. Additional hardening includes path traversal validation via resolve_path_in_workspace() to confine file operations to the designated workspace directory.
Know when Pptagent gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
3DescriptionCVE.org
PPTAgent is an agentic framework for reflective PowerPoint generation. Prior to commit 418491a, PPTAgent is vulnerable to arbitrary code execution via Python eval() of LLM-generated code with builtins in scope. This issue has been patched via commit 418491a.
Executive ViewAI
CVE-2026-42079 is a high-severity arbitrary code execution vulnerability in PPTAgent that allows local attackers to execute arbitrary Python code through unsafe evaluation of AI-generated content. This affects any organization using PPTAgent for AI-driven presentation automation, potentially compromising systems where the application runs and enabling unauthorized command execution by local users or malicious prompts.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict PPTAgent execution to isolated, non-privileged local user accounts with minimal system access; (2) Disable or sandbox Python eval() functionality if application features allow; (3) Implement strict input validation on all prompts before passing to PPTAgent's agentic pipeline; (4) Monitor for unusual subprocess or system command execution originating from PPTAgent processes; (5) Limit PPTAgent deployment to air-gapped or restricted networks until patch is available. Patch commit 418491a is available in source repository-evaluate applying directly if operationally feasible pending official release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary file write vulnerability in PPTAgent prior to commit 418491a allows authenticated users with UI interaction to
PPTAgent prior to commit 418491a allows authenticated users to write arbitrary files and create directories outside inte
EUVD-2026-27015
GHSA-89g2-xw5c-v95p
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB