CVE Explorer
CVE-2026-40287
PraisonAI is a multi-agent teams system. Versions 4.5.138 and below are vulnerable to arbitrary code execution through automatic, unsanitized import of a tools.py file from the current working directory. Components including call.py (import_tools_from_file()), tool_resolver.py (_load_local_tools()), and CLI tool-loading paths blindly import ./tools.py at startup without any validation, sandboxing, or user confirmation. An attacker who can place a malicious tools.py in the directory where Praison
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
2
Preserved source conflicts
No provider value was silently selected as the winner.
affected · 2 assertions
{"product":"praisonaiagents","vendor":"MervinPraison","versions":[{"status":"affected","version":"< 1.5.140"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/affected/1
{"product":"PraisonAI","vendor":"MervinPraison","versions":[{"status":"affected","version":"< 4.5.139"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/affected/0
cwe · 2 assertions
{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-426","description":"CWE-426: Untrusted Search Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/problemTypes/1/descriptions/0
Affected products and versions
2 source assertions{"product":"praisonaiagents","vendor":"MervinPraison","versions":[{"status":"affected","version":"< 1.5.140"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/affected/1
{"product":"PraisonAI","vendor":"MervinPraison","versions":[{"status":"affected","version":"< 4.5.139"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
2 source assertions{"cweId":"CWE-94","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/problemTypes/0/descriptions/0
{"cweId":"CWE-426","description":"CWE-426: Untrusted Search Path","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/problemTypes/1/descriptions/0
Source references
2 source assertions{"tags":["exploit"],"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/adp/0/references/0
{"name":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc","tags":["x_refsource_CONFIRM"],"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g985-wjh9-qxxc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:cc989c1ddd9e279213cac932463f70dd96c84c769f893ef21ee32b655b0482d6 · sha256:cc1088490c10e5ac… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.