VulnWatch by ve1ve2
high 8.8 EPSS 1.05%

GHSA-jrjx-9jjw-747m: AIT-GUI route chain allows unauthenticated Python execution in server process

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
ait-gui

https://osv.dev/vulnerability/GHSA-jrjx-9jjw-747m ↗

osvpypifix-available

AIT-GUI route chain allows unauthenticated Python execution in server process ## Summary A security issue exists where unauthenticated callers can instruct the AIT-GUI server to execute arbitrary Python scripts. The attack vector involves obtaining a session cookie through GET /, followed by a malicious POST /script/run request containing an absolute file path that bypasses the configured script directory restrictions. ### Patches * 2.5.1 ### Impact This vulnerability allows unauthenticated remote code execution on the AIT-GUI server. Any attacker with network access can execute arbitrary Python code with daemon privileges. ## Details _Chain:_ 1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory. * If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file. 2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`. * AIT-GUI reads that file and runs it as Python. _Relevant code:_ - `ait/gui/__init__.py:930,935,942-944`: `/tlm/query` writes `fields` to `fields_in.txt`. - `ait/gui/__init__.py:952-958,978`: the no-PCAP error path aborts before cleanup. - `ait/gui/__init__.py:1130-1136`: `/script/run` joins `scriptPath` with `ScriptRoot` and only checks that the path exists. - `ait/gui/__init__.py:1186-1191`: the selected file is read and executed as Python. - `ait/gui/__init__.py:1105-1108`: nearby `/scripts/load/ ` has a path containment check, but `/script/run` does not. ### Fix Information Restricted script execution paths and avoided using static temp files. ## PoC 1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory. * If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file. ``` # Remove file to ensure nothing exists AIT-GUI % rm /fields_in.txt # With server started, send POST request to /tlm/query endpoint AIT-GUI % curl -X POST http://localhost:8080/tlm/query \ -d "dataDir= " \ -d "timeField=time" \ -d "packet=CCSDS_HEADER" \ -d "fields=field1,field2,field3" \ -d "startTime=2026-07-01T00:00:00" \ -d "endTime=2026-07-10T00:00:00" \ -o query_out.csv % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 925 100 782 100 143 34798 6363 --:--:-- --:--:-- --:--:-- 42045 # AIT-server log verify that PCAP file cannot be found: 2026-07-10T11:46:37.873 | ERROR | Unable to locate PCAP files for query given data directory # Verify file is created and not cleaned up AIT-GUI % cat /fields_in.txt field1 field2 field3 ``` 2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`. * AIT-GUI reads that file and runs it as Python. ``` # Generate session cookie curl -c cookies.txt -v http://localhost:8080/ -o /dev/null # Execute example script which currently exists in conf Affected: PyPI:ait-gui Fixed in: 2.5.1 References: https://github.com/NASA-AMMOS/AIT-GUI/security/advisories/GHSA-jrjx-9jjw-747m https://nvd.nist.gov/vuln/detail/CVE-2026-77309 https://github.com/NASA-AMMOS/AIT-GUI/commit/beb8fc0813eded89f985d3eb9a73535dd327726d https://github.com/NASA-AMMOS/AIT-GUI https://github.com/NASA-AMMOS/AIT-GUI/blob/2.5.1/CHANGELOG.md https://github.com/NASA-AMMOS/AIT-GUI/releases/tag/2.5.1

Linked vulnerabilities (2)

CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AIT-GUI route chain allows unauthenticated Python execution in server process

CWE: CWE-22, CWE-459Aliases: CVE-2026-77309
CVE-2026-77309 high 8.8 EPSS 1.05% (p65) NVDCVE.orgGHSA
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AIT-GUI route chain allows unauthenticated Python execution in server process

CWE: CWE-22, CWE-459Aliases: GHSA-jrjx-9jjw-747mNVD: Received

Also reported by (1)