{"vuln_id":"CVE-2026-77309","aliases":["GHSA-jrjx-9jjw-747m"],"description":"AIT-GUI route chain allows unauthenticated Python execution in server process","published_at":"2026-11-20T18:18:55.847000Z","modified_at":"2026-11-20T23:45:03.787282Z","first_seen_at":"2026-11-21T19:15:19.254719Z","severity":"high","severity_source":"nvd","cvss_score":8.8,"cvss_vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-22","CWE-459"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.01051,"epss_percentile":0.65111,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-77309"},"matched_alias":null,"items":[{"id":10652,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-jrjx-9jjw-747m: AIT-GUI route chain allows unauthenticated Python execution in server process","summary":"AIT-GUI route chain allows unauthenticated Python execution in server process\n\n## Summary\nA 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.\n\n### Patches\n* 2.5.1\n\n### Impact\nThis vulnerability allows unauthenticated remote code execution on the AIT-GUI server. Any attacker with network access can execute arbitrary Python code with daemon privileges.\n\n## Details\n_Chain:_\n1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory.\n* If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file.\n2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`.\n* AIT-GUI reads that file and runs it as Python.\n\n_Relevant code:_\n- `ait/gui/__init__.py:930,935,942-944`: `/tlm/query` writes `fields` to `fields_in.txt`.\n- `ait/gui/__init__.py:952-958,978`: the no-PCAP error path aborts before cleanup.\n- `ait/gui/__init__.py:1130-1136`: `/script/run` joins `scriptPath` with `ScriptRoot` and only checks that the path exists.\n- `ait/gui/__init__.py:1186-1191`: the selected file is read and executed as Python.\n- `ait/gui/__init__.py:1105-1108`: nearby `/scripts/load/\n` has a path containment check, but `/script/run` does not.\n\n### Fix Information\nRestricted script execution paths and avoided using static temp files.\n\n## PoC\n1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory.\n* If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file.\n```\n# Remove file to ensure nothing exists\nAIT-GUI % rm\n/fields_in.txt\n\n# With server started, send POST request to /tlm/query endpoint\nAIT-GUI % curl -X POST http://localhost:8080/tlm/query \\ -d \"dataDir=\n\" \\\n-d \"timeField=time\" \\\n-d \"packet=CCSDS_HEADER\" \\\n-d \"fields=field1,field2,field3\" \\\n-d \"startTime=2026-07-01T00:00:00\" \\\n-d \"endTime=2026-07-10T00:00:00\" \\\n-o query_out.csv\n% Total % Received % Xferd Average Speed Time Time Time Current\nDload Upload Total Spent Left Speed\n100 925 100 782 100 143 34798 6363 --:--:-- --:--:-- --:--:-- 42045\n\n# AIT-server log verify that PCAP file cannot be found:\n2026-07-10T11:46:37.873 | ERROR | Unable to locate PCAP files for query given data directory\n\n# Verify file is created and not cleaned up\nAIT-GUI % cat\n/fields_in.txt\nfield1\nfield2\nfield3\n```\n2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`.\n* AIT-GUI reads that file and runs it as Python.\n\n```\n# Generate session cookie\ncurl -c cookies.txt -v http://localhost:8080/ -o /dev/null\n\n# Execute example script which currently exists in conf\n\nAffected: PyPI:ait-gui\n\nFixed in: 2.5.1\n\nReferences:\nhttps://github.com/NASA-AMMOS/AIT-GUI/security/advisories/GHSA-jrjx-9jjw-747m\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-77309\nhttps://github.com/NASA-AMMOS/AIT-GUI/commit/beb8fc0813eded89f985d3eb9a73535dd327726d\nhttps://github.com/NASA-AMMOS/AIT-GUI\nhttps://github.com/NASA-AMMOS/AIT-GUI/blob/2.5.1/CHANGELOG.md\nhttps://github.com/NASA-AMMOS/AIT-GUI/releases/tag/2.5.1","url":"https://osv.dev/vulnerability/GHSA-jrjx-9jjw-747m","published_at":"2026-11-20T23:36:41Z","updated_at":"2026-11-20T23:45:03.787282Z","fetched_at":"2026-11-21T19:15:55.946077Z","severity":"high","cvss_score":8.8,"epss":0.01051,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"ait-gui","vuln_id":"CVE-2026-77309","vuln_ids":["CVE-2026-77309","GHSA-JRJX-9JJW-747M"],"tags":["osv","pypi","fix-available"],"cluster_id":1998,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10652","html":"https://vulnwatch.ve1ve2.com/item/10652"}},{"id":2290,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-jrjx-9jjw-747m / CVE-2026-77309: AIT-GUI route chain allows unauthenticated Python execution in server process","summary":"AIT-GUI route chain allows unauthenticated Python execution in server process\n\n## Summary\nA 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.\n\n### Patches\n* 2.5.1\n\n### Impact\nThis vulnerability allows unauthenticated remote code execution on the AIT-GUI server. Any attacker with network access can execute arbitrary Python code with daemon privileges.\n\n## Details\n_Chain:_\n1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory.\n* If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file.\n2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`.\n* AIT-GUI reads that file and runs it as Python.\n\n_Relevant code:_\n- `ait/gui/__init__.py:930,935,942-944`: `/tlm/query` writes `fields` to `fields_in.txt`.\n- `ait/gui/__init__.py:952-958,978`: the no-PCAP error path aborts before cleanup.\n- `ait/gui/__init__.py:1130-1136`: `/script/run` joins `scriptPath` with `ScriptRoot` and only checks that the path exists.\n- `ait/gui/__init__.py:1186-1191`: the selected file is read and executed as Python.\n- `ait/gui/__init__.py:1105-1108`: nearby `/scripts/load/\n` has a path containment check, but `/script/run` does not.\n\n### Fix Information\nRestricted script execution paths and avoided using static temp files.\n\n## PoC\n1. `POST /tlm/query` writes the user-controlled `fields` value into `fields_in.txt` under the AIT-GUI static directory.\n* If the supplied `dataDir` has no `.pcap` files, the route returns the expected `400 Bad Request` before deleting that file.\n```\n# Remove file to ensure nothing exists\nAIT-GUI % rm\n/fields_in.txt\n\n# With server started, send POST request to /tlm/query endpoint\nAIT-GUI % curl -X POST http://localhost:8080/tlm/query \\ -d \"dataDir=\n\" \\\n-d \"timeField=time\" \\\n-d \"packet=CCSDS_HEADER\" \\\n-d \"fields=field1,field2,field3\" \\\n-d \"startTime=2026-07-01T00:00:00\" \\\n-d \"endTime=2026-07-10T00:00:00\" \\\n-o query_out.csv\n% Total % Received % Xferd Average Speed Time Time Time Current\nDload Upload Total Spent Left Speed\n100 925 100 782 100 143 34798 6363 --:--:-- --:--:-- --:--:-- 42045\n\n# AIT-server log verify that PCAP file cannot be found:\n2026-07-10T11:46:37.873 | ERROR | Unable to locate PCAP files for query given data directory\n\n# Verify file is created and not cleaned up\nAIT-GUI % cat\n/fields_in.txt\nfield1\nfield2\nfield3\n```\n2. `POST /script/run` accepts `scriptPath=../static/fields_in.txt`.\n* AIT-GUI reads that file and runs it as Python.\n\n```\n# Generate session cookie\ncurl -c cookies.txt -v http://localhost:8080/ -o /dev/null\n\n# Execute example script which currently exists in conf\n\nAffected packages: pip:ait-gui\nPatched: ait-gui 2.5.1","url":"https://github.com/advisories/GHSA-jrjx-9jjw-747m","published_at":"2026-11-20T23:36:41Z","updated_at":"2026-11-20T23:36:41Z","fetched_at":"2026-11-21T19:15:18.416725Z","severity":"high","cvss_score":8.8,"epss":0.01051,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"ait-gui","vuln_id":"CVE-2026-77309","vuln_ids":["CVE-2026-77309","GHSA-JRJX-9JJW-747M"],"tags":["ghsa","pip","CWE-22","CWE-459"],"cluster_id":1998,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2290","html":"https://vulnwatch.ve1ve2.com/item/2290"}},{"id":9963,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77309: AIT GUI provides a framework for building custom websites for real-time telemetry monitoring, commanding, and other mission operations. From 1.0.0 until 2.5.1,…","summary":"AIT GUI provides a framework for building custom websites for real-time telemetry monitoring, commanding, and other mission operations. From 1.0.0 until 2.5.1, POST /tlm/query in ait/gui/__init__.py writes attacker-controlled field data to fields_in.txt, and its no-PCAP error path can abort before deleting that file. The unauthenticated POST /script/run route accepts a scriptPath that resolves outside ScriptRoot, reads the selected file, and executes it as Python. A network-reachable attacker can obtain the ordinary session cookie without credentials, combine the two routes, and execute arbitrary Python code with the AIT-GUI server process privileges. This issue is fixed in version 2.5.1.\n\nReferences:\nhttps://github.com/NASA-AMMOS/AIT-GUI/blob/2.5.1/CHANGELOG.md\nhttps://github.com/NASA-AMMOS/AIT-GUI/commit/beb8fc0813eded89f985d3eb9a73535dd327726d\nhttps://github.com/NASA-AMMOS/AIT-GUI/releases/tag/2.5.1\nhttps://github.com/NASA-AMMOS/AIT-GUI/security/advisories/GHSA-jrjx-9jjw-747m\nhttps://github.com/NASA-AMMOS/AIT-GUI/security/advisories/GHSA-jrjx-9jjw-747m","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77309","published_at":"2026-11-20T18:18:55.847000Z","updated_at":"2026-11-20T19:18:53.477000Z","fetched_at":"2026-11-21T19:15:31.485454Z","severity":"high","cvss_score":8.8,"epss":0.01051,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77309","vuln_ids":["CVE-2026-77309","GHSA-JRJX-9JJW-747M"],"tags":["CWE-22","CWE-459"],"cluster_id":1999,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9963","html":"https://vulnwatch.ve1ve2.com/item/9963"}}]}