llamaCVEVulnerability Intelligence
/
PraisonAIAgents

CVE-2026-40111

PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)

Texto original en inglés · Ver en español

Solo en configuraciones específicasParche disponible
Descargar PNG JSON
CVSS 4.0
9.3
Crítica
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H Fuente: CNA
8.8NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
ExplotaciónPoC públicaSSVC: PoC · no figura en CISA KEV
Exploits públicos0CISA-ADP reporta PoC; aún sin enlace público
Parche1 versiónPrimer parche el mismo día de la divulgación
Exposición225 dDesde la divulgación, 9 abr 2026, 4:14 p. m.
Detección207 dDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir de cerca
Monitorear y programar la remediación
Existe PoC pública, no automatizable e impacto técnico total. Hay versiones corregidas disponibles.
La próxima reunión de cambios es tuya. Llévala.Pide la ventana de mantenimiento antes del viernes.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 1.5.128
Monitoreo
Detectada
Verificada
9 abr 26
13 abr 26
3 nov 26
16 nov 26
21 nov 26
9 abr 26
5 jun 26
31 jul 26
26 sept 26
21 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-40111 divulgada · CVSS 9.3 (CNA)
Remediación Parche 1.5.128 praisonaiagents · 0 d desde divulgación
Divulgación Evaluación SSVC CISA-ADP · explotación PoC pública
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he memory hooks executor in praisonaiagents passes a user-controlled command string directly to subprocess.run() with shell=True at src/praisonai-agents/praisonaiagents/memory/hooks.py. No sanitization is performed and shell metacharacters are interpreted by /bin/sh before the intended command executes. Two independent attack surfaces exist. The first is via pre_run_command and post_run_command hook event types registered through the hooks configuration. The second and more severe surface is the .praisonai/hooks.json lifecycle configuration, where hooks registered for events such as BEFORE_TOOL and AFTER_TOOL fire automatically during agent operation. An agent that gains file-write access through prompt injection can overwrite .praisonai/hooks.json and have its payload execute silently at every subsequent lifecycle event without further user interaction. This vulnerability is fixed in 1.5.128.

PraisonAIAgents versions before 1.5.128 are affected when hooks run through pre_run_command, post_run_command, or .praisonai/hooks.json lifecycle events such as BEFORE_TOOL and AFTER_TOOL. Fixed in 1.5.128.

¿Qué significa?The memory hooks executor passes hook command strings to a shell with shell=True, so text inside a hook command can run as arbitrary OS commands. Successful use gives commands the same privileges as the praisonaiagents process.
¿Quién está afectado?Affected setups are PraisonAIAgents releases before 1.5.128 that configure hooks through the pre_run_command or post_run_command event types, or through .praisonai/hooks.json lifecycle events such as BEFORE_TOOL and AFTER_TOOL. To check, look at the installed PraisonAIAgents version and whether any of these hook settings are in use.
¿Qué hacer?Upgrade PraisonAIAgents to version 1.5.128 or later, which is the listed fixed version.
Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Hooks are configured through pre_run_command or post_run_command event types, or through .praisonai/hooks.json lifecycle events such as BEFORE_TOOL and AFTER_TOOL“Two independent attack surfaces exist. The first is via pre_run_command and”
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · NVD
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Score de explotaciónQué tan fácil y probable es que la exploten
10.0/ 10Muy alto
Vector 8.3 (muy fácil) · +1.7 por PoC pública.
Versiones

Rangos afectados

Afectada Corregida Última
PraisonAIAgents · praisonaiagents< 1.5.128
1.5.128
1.7.22
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypipraisonaiagents
Corregida 1.5.128 0 d 1.7.22 no afectada
Versiones corregidas1.5.128
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v7px-3835-7gjx

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.