CVE-2026-67547
RCE via /api/skill-exec code_exec lets any user run Python.
- CVSS 8.8
- CWE-862
- Authentication, Authorization, and Session Management
- Remote
taOS is a self-hosted AI agent OS. Prior to version 1.0.0-beta.23, the POST /api/skill-exec/{skill_id}/call endpoint in taOS executes built-in skills — including the code_exec skill which runs arbitrary Python via subprocess.run(["python3", "-c", code]) — without performing any admin role check, skill ownership check, or agent assignment verification. Any authenticated non-admin user can supply attacker-controlled Python code in the request body and have it executed as the taOS backend process user on the host, achieving full remote code execution with no privilege escalation required beyond a valid (non-admin) session. This issue has been patched in version 1.0.0-beta.23.
- CWE
- CWE-862
- CVSS base score
- 8.8
- Published
- 2026-11-11
- OWASP
- A01 Broken Access Control
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Authentication, Authorization, and Session Management
- Subcategory
- Privilege Escalation
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- taOS
Solution
Upgrade to taOS v1.0.0‑beta.23 or later.
Vulnerable code sample
import subprocess
from flask import Flask, request, abort
app = Flask(__name__)
def get_user_role(user_id):
# Placeholder: returns 'user' for all non-admins
return 'user'
@app.route('/api/skill-exec/<skill_id>/call', methods=['POST'])
def skill_exec(skill_id):
user_id = request.headers.get('X-User-Id')
# VULNERABLE: missing admin/ownership check allows any user to run code_exec
if skill_id == 'code_exec':
code = request.get_data(as_text=True)
subprocess.run(["python3", "-c", code], capture_output=True)
return '', 204Patched code sample
import subprocess
from flask import Flask, request, abort
app = Flask(__name__)
def get_user_role(user_id):
# Placeholder: returns 'admin' only for admin users
return 'admin' if user_id == '1' else 'user'
def user_owns_skill(user_id, skill_id):
# Placeholder: only user 1 owns 'code_exec'
return user_id == '1' and skill_id == 'code_exec'
@app.route('/api/skill-exec/<skill_id>/call', methods=['POST'])
def skill_exec(skill_id):
user_id = request.headers.get('X-User-Id')
# FIX: enforce admin/ownership check before executing code_exec
if skill_id == 'code_exec':
if get_user_role(user_id) != 'admin' and not user_owns_skill(user_id, skill_id):
abort(403)
code = request.get_data(as_text=True)
subprocess.run(["python3", "-c", code], capture_output=True)
return '', 204Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- fix(security): require admin or local-token auth for skill execution — closes non-admin RCE via code_exec (GHSA-h24f-gp4c-8qjm) (#1620) (jaylfc/taOS)
tinyagentos/routes/skill_exec.py,tinyagentos/routes/skill_exec.py · execute_skill,tinyagentos/routes/skill_exec.py · _skill_code_exec
Cite this entry
@misc{vaitp:cve202667547,
title = {{RCE via /api/skill-exec code_exec lets any user run Python.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-67547},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-67547/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
