Vulnerability in pptagent (CVE-2026-42079)
Summary
Vulnerability in pptagent (CVE-2026-42079). Successful exploitation can lead to full system takeover. Exploitable via CodeExecutor.execute_actions. Mitigation: upgrade to 1.1.36 or later.
Original description
The description as published by the source.
Summary
This vulnerability has been fixed in https://github.com/icip-cas/PPTAgent/commit/418491a9a1c02d9d93194b5973bb58df35cf9d00.
CodeExecutor.execute_actions (pptagent/apis.py:126-205) processes LLM-generated slide editing actions using Python's eval():
# pptagent/apis.py:184-186
partial_func = partial(self.registered_functions[func], edit_slide)
if func == "replace_image":
partial_func = partial(partial_func, doc)
eval(line, {}, {func: partial_func}) # ← builtins accessible
The call eval(line, {}, {func: partial_func}) passes an empty dict as globals. Per Python's language reference: "If the globals dictionary is present and does not contain a value for the key __builtins__, a reference to the dictionary of the built-in module builtins is inserted under that key before the expression is parsed." This means __import__, open, exec, compile, and all other built-in functions are available inside the evaluated expression.
The validation before eval only checks 1) The function name matches ^[a-z]+[a-z]+ (snake_case pattern) and 2) The function name is in self.registered_functions.
The arguments to the function are not validated. If an attacker can influence the LLM's generated edit actions (via prompt injection through slide content, document content, or the command_list context), the following payload would execute arbitrary code:
# Attacker-controlled slide content feeds into the command_list context
# The c…
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-42079 has been found in pptagent.
Attackers can target a specific entry point like CodeExecutor.execute_actions over the network to misuse the product.
Successful exploitation can lead to full system takeover.
What to do: upgrade pptagent to 1.1.36 or later.
If unsure, ask your IT team or search "pptagent CVE-2026-42079" on the vendor's site.
CVE-2026-42079 (pptagent) — CWE-95
Attack vector: local / unauthenticated
Attack surface: CodeExecutor.execute_actions / __builtins__ / __import__ / eval
Patched: 1.1.36 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-95) exists in pptagent. Attackers reach the vulnerable code path via CodeExecutor.execute_actions without authentication.
Check the vendor advisory for the affected versions of pptagent. Attack surface: CodeExecutor.execute_actions / __builtins__ / __import__ / eval.
Severity: ?. Successful exploitation can lead to full system takeover.
Update to 1.1.36.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'pptagent' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'pptagent' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
pptagentを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade pptagent to 1.1.36ステージング環境で 1.1.36 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com