{"id":"CVE-2026-40152","published":"2026-04-09T21:26:49Z","modified":"2026-04-13T20:40:43Z","title":"PraisonAIAgents has a Path Traversal via Unvalidated Glob Pattern in list_files Bypasses Workspace Boundary","vendor":"MervinPraison","product":"PraisonAIAgents","tier":"tail","description":{"text":"PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he list_files() tool in FileTools validates the directory parameter against workspace boundaries via _validate_path(), but passes the pattern parameter directly to Path.glob() without any validation. Since Python's Path.glob() supports .. path segments, an attacker can use relative path traversal in the glob pattern to enumerate arbitrary files outside the workspace, obtaining file metadata (existence, name, size, timestamps) for any path on the filesystem. This vulnerability is fixed in 1.5.128.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00425,"percentile":0.28513,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-7j2f-xc8p-fjmq","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":5.7},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAIAgents","versions":["< 1.5.128"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-13T20:40:26.767077Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"praisonaiagents","vulnerableRanges":["<1.5.128"],"patched":["1.5.128"],"from":["GHSA-7j2f-xc8p-fjmq","PYSEC-2026-2944"],"provenance":"source"}],"summary":{"text":"The list_files() tool in FileTools of PraisonAIAgents, a multi-agent teams system, validates its directory parameter against workspace boundaries but passes its pattern parameter unvalidated to Path.glob(), allowing relative path traversal via \"..\" segments. An attacker with network access and no authentication or user interaction can use this to enumerate files outside the workspace and obtain their metadata (existence, name, size, and timestamps).","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:02:07Z"},"euvd":{"id":"EUVD-2026-21174","exploited":false,"provenance":"source"}}