{"answers":{"affected":"5 open source packages ship an affected version, including ait-core.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47731 exists.","fix":"Upgrade ait-core to a fixed version for your release line: 2.6.1 or 3.1.1.","what":"CVE-2026-47731 is a critical path traversal vulnerability in NASA-AMMOS AIT-Core, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-47731 and fix it if it is affected.\n\nWhat it is: CVE-2026-47731 is a critical path traversal vulnerability in NASA-AMMOS AIT-Core, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47731 exists.\n\nAffected packages and fixed versions:\n- ait-core (PyPI): affected all versions; fixed in 2.6.1, 3.1.1\n- ait-core (PyPI): affected all versions; fixed in 2.6.1\n- ait-core (PyPI): affected all versions; fixed in 2.6.1\n- ait-core (PyPI): affected from 3.1.0; fixed in 3.1.1\n- ait-core (PyPI): affected from 3.1.0; fixed in 3.1.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47731/ (Markdown: https://insights.sbomify.com/CVE-2026-47731/index.md)","id":"CVE-2026-47731","markdown":"https://insights.sbomify.com/CVE-2026-47731/index.md","name":"CVE-2026-47731","record":{"aliases":["GHSA-p462-prxw-mjx4","PYSEC-2026-265"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_modify","code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"NASA AMMOS Toolkit","requires_auth":"none","summary":"Unauthenticated remote attackers can exploit path traversal in the Binary Stream Capture component to append arbitrary data to files, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"The AMMOS Instrument Toolkit (Formerly the Bespoke Links to Instruments for Surface and Space (BLISS)) is a Python-based software suite developed to handle Ground Data System (GDS), Electronic Ground Support Equipment (EGSE), commanding, telemetry uplink/downlink, and sequencing for instrument and CubeSat Missions. In versions prior to 2.6.1 and in version 3.1.0, the Binary Stream Capture (BSC) component exposes an unauthenticated HTTP API for dynamically creating packet capture \"handlers.\" Because the code blindly trusts path‑related form fields, a remote client can bypass the configured log root and direct BSC to log to arbitrary filesystem paths (path traversal / directory escape), and append attacker‑controlled data to those files, using the privileges of the`ait-bsc` process. There are two ways for a remote attacker to trigger this. First, if the attacker has access to the network where `ait-bsc` is deployed (a reason for that could be that the ports are publicly accessible), the payloads can be directly sent to the server to trigger the arbitrary file append. This type of attack is demonstrated in `python_poc.py`. Second, even if the attacker does not have direct access to the network because the software is running in a local network, it is possible to exploit this if a bad actor in that network opens an attacker-controlled website (which might be a website created by an attacker, or a third-party website compromised by the attacker). The browser javascript can automatically send the requests necessary to exploit this into the local network. This is even possible if the server is only accessible on `localhost`. This type of attack is demonstrated by `attacker_tcp.py` and `test1.html` (first launch the attacker TCP server, then start a webserver to host `test1.html`, for example using `python3 -m http.server 7000`, and open `test1.html`).This issue affects BSC (Binary Stream Capture) and usage of the ait-bsc server. This impacts AIT-Core versions before 3.1.1, from 2.x before 2.6.1. Users are recommended to upgrade to version 3.1.1 or 2.6.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"NASA AMMOS Instrument Toolkit: Path traversal resulting in arbitrary file append (can be triggered over the network by unauthenticated attacker)","id":"CVE-2026-47731","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":5,"n_references":3,"next":{"headline":"Twig Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points","id":"CVE-2026-47732"},"packages":[{"ecosystem":"PyPI","fixed":["2.6.1","3.1.1"],"introduced":["0","3.1.0"],"last_affected":[],"package":"ait-core","purl":"pkg:pypi/ait-core","source":"PYSEC-2026-265"},{"ecosystem":"PyPI","fixed":["2.6.1"],"introduced":["0"],"last_affected":[],"package":"ait-core","purl":null,"source":"GHSA-p462-prxw-mjx4"},{"ecosystem":"PyPI","fixed":["2.6.1"],"introduced":["0"],"last_affected":[],"package":"ait-core","purl":"pkg:pypi/ait-core","source":"GHSA-p462-prxw-mjx4"},{"ecosystem":"PyPI","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"ait-core","purl":null,"source":"GHSA-p462-prxw-mjx4"},{"ecosystem":"PyPI","fixed":["3.1.1"],"introduced":["3.1.0"],"last_affected":[],"package":"ait-core","purl":"pkg:pypi/ait-core","source":"GHSA-p462-prxw-mjx4"}],"prev":{"headline":"Twig: XSS in profiler HtmlDumper via unescaped template and profile names","id":"CVE-2026-47730"},"products":["AIT-Core"],"published":"2026-07-21","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-22","vendors":["NASA-AMMOS"]},"summary":"Unauthenticated remote attackers can exploit path traversal in the Binary Stream Capture component to append arbitrary data to files, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2026-47731/"}