A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-42079

CVE-2026-42079: PPTAgent RCE Vulnerability

CVE-2026-42079 is a remote code execution flaw in PPTAgent that allows arbitrary code execution via Python eval() of LLM-generated code. This post explains its technical details, affected versions, impact, and mitigation.

Published: May 7, 2026

CVE-2026-42079 Overview

CVE-2026-42079 is an arbitrary code execution vulnerability in PPTAgent, an agentic framework for reflective PowerPoint generation. The framework passes large language model (LLM) generated code to Python's eval() function with built-in functions in scope. An attacker who can influence the LLM output, such as through a crafted input document or prompt, can execute arbitrary Python code in the host process. The issue is tracked under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code. Maintainers patched the flaw in commit 418491a by restricting the evaluation environment.

Critical Impact

Successful exploitation grants full code execution in the PPTAgent process, leading to complete loss of confidentiality, integrity, and availability on the host running the framework.

Affected Products

  • PPTAgent (icip-cas/PPTAgent) prior to commit 418491a
  • Deployments embedding PPTAgent's pptagent/apis.py SlideRenderer logic
  • PPTAgent MCP server deployments using pptagent/mcp_server.py

Discovery Timeline

  • 2026-05-04 - CVE-2026-42079 published to NVD
  • 2026-05-05 - CVE-2026-42079 last updated in NVD database

Technical Details for CVE-2026-42079

Vulnerability Analysis

PPTAgent uses an LLM to generate Python code that drives slide rendering and related operations. The framework executed that generated code using Python's built-in eval() function. Because eval() was called without restricting __builtins__, the evaluated expression had access to the full Python built-in namespace, including __import__, open, and exec. Any prompt path that lets an attacker steer LLM output toward Python expressions yields arbitrary code execution. The attack vector is local and requires user interaction, typically a user submitting a malicious document or prompt to the agent. Impact spans confidentiality, integrity, and availability because the executed code runs with the privileges of the PPTAgent process.

Root Cause

The root cause is unsafe dynamic evaluation of untrusted code [CWE-95]. The pre-patch implementation invoked eval() on LLM-generated strings without sandboxing the globals dictionary. With built-ins reachable, expressions such as __import__('os').system(...) execute directly. LLM output is functionally untrusted input because adversarial prompts and prompt-injected documents can shape it.

Attack Vector

An attacker supplies content, for example a PowerPoint source, table, or instruction, that causes the LLM to emit Python code containing malicious calls. PPTAgent then evaluates that code through eval(), executing the payload. Because PPTAgent reads referenced resources from the filesystem, paths outside the intended workspace can also be reached prior to the patch.

python
# Security patch in pptagent/apis.py (commit 418491a)
logger = get_logger(__name__)
TABLE_REGEX = re.compile(r".*table_[0-9a-fA-F]{4}\.png$")
SAFE_EVAL_GLOBALS = {"__builtins__": {}}


class SlideRenderer(HTMLRenderer):
    ...
# Source: https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00

The patch introduces SAFE_EVAL_GLOBALS with an empty __builtins__ dictionary, removing access to built-in functions during evaluation. A second hunk in pptagent/mcp_server.py adds resolve_path_in_workspace to constrain file resolution to a defined workspace directory.

Detection Methods for CVE-2026-42079

Indicators of Compromise

  • Unexpected Python child processes spawned by the PPTAgent runtime, especially python -c, sh, or bash invocations.
  • Outbound network connections from the PPTAgent host to attacker-controlled hosts shortly after a slide generation request.
  • Files written outside the PPTAgent workspace directory or modifications to ~/.ssh/authorized_keys and cron entries on Linux hosts.
  • LLM trace logs containing strings such as __import__, eval(, exec(, or os.system inside generated code blocks.

Detection Strategies

  • Audit PPTAgent's prompt and response logs for generated code that references __import__, subprocess, os, or socket.
  • Compare deployed pptagent/apis.py against commit 418491a to confirm the presence of SAFE_EVAL_GLOBALS = {"__builtins__": {}}.
  • Use endpoint detection and response (EDR) telemetry to flag the PPTAgent process spawning shells or interpreters.

Monitoring Recommendations

  • Forward PPTAgent application logs and process telemetry into a centralized SIEM or data lake for correlation.
  • Alert on PPTAgent process file writes outside its declared workspace path.
  • Monitor for new outbound connections from the PPTAgent service account, which should typically only contact the LLM endpoint.

How to Mitigate CVE-2026-42079

Immediate Actions Required

  • Upgrade PPTAgent to a build that includes commit 418491a or later.
  • Run PPTAgent under a dedicated, low-privilege service account with no shell access.
  • Restrict the host's outbound network egress to only the required LLM API endpoints.
  • Treat any input documents processed by vulnerable PPTAgent versions as potentially attacker-influenced and review host integrity.

Patch Information

The vulnerability is fixed in PPTAgent commit 418491a. The patch sets SAFE_EVAL_GLOBALS = {"__builtins__": {}} so eval() runs without access to Python built-ins, and adds resolve_path_in_workspace to constrain filesystem access in the MCP server. Refer to the GitHub Security Advisory GHSA-89g2-xw5c-v95p for additional context.

Workarounds

  • If patching is not immediately possible, run PPTAgent inside a container or sandbox with no network egress and a read-only filesystem outside its workspace.
  • Apply the upstream change manually by replacing eval(expr) calls with eval(expr, {"__builtins__": {}}, {}) in forked deployments.
  • Disable user-facing entry points that submit untrusted documents to PPTAgent until the patched version is deployed.
bash
# Verify the patched commit is present in your deployment
cd PPTAgent
git log --oneline | grep 418491a
grep -n 'SAFE_EVAL_GLOBALS' pptagent/apis.py
# Expected output: SAFE_EVAL_GLOBALS = {"__builtins__": {}}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechN/A

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-95
  • Technical References
  • GitHub Commit Notification

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-9813: FlowIntel SSRF Vulnerability

  • CVE-2026-4377: D-Link DWR-X1820 Auth Bypass Vulnerability

  • CVE-2026-47074: ex_aws_sns Auth Bypass Vulnerability

  • CVE-2026-46241: Linux Kernel Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English