Skip to main content

rust-iot-platform EUVDEUVD-2026-53363

| CVE-2026-71278 CRITICAL
Code Injection (CWE-94)
2026-08-05 TuranSec GHSA-j4r7-rp8f-vhp4
9.8
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Reach exposed API endpoint
  2. Delivery
    POST /calc-rule/create with malicious script
  3. Exploit
    Bypass missing AuthToken guard
  4. Install
    Store arbitrary JavaScript rule
  5. C2
    Trigger calc rule evaluation
  6. Execute
    quick_js eval() runs payload
  7. Impact
    Arbitrary code execution in server process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The specific prerequisite is network reachability of the rust-iot-platform API's POST /calc-rule/create endpoint; the AuthToken guard used elsewhere is absent on this exact route, so no credentials are needed. The attacker must supply an arbitrary JavaScript payload in the rule's script field and then cause the rule to run so that api/src/biz/calc_run_biz.rs invokes quick_js::Context::eval() on it. Limiting factors are minimal: exploitation works against default configurations (no special feature flag stated as required), the only real gate being that the endpoint must be network-accessible to the attacker, so instances exposed only on an internal/trusted network are correspondingly harder to reach.

Impact

This is a genuine high priority, not an inflated CVSS. The provided vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) is internally consistent with the description: network-reachable, low complexity, no authentication (the guard is missing), no user interaction, and full C/I/A impact from arbitrary code execution. No EPSS score, KEV entry, SSVC decision, or POC was supplied, so probability-of-exploitation signals are absent - the risk case rests on the strong, source-level description of a missing auth guard feeding an unsandboxed eval(), which is a well-understood and easily weaponizable pattern. The main mitigating real-world factor is prevalence: this is a niche open-source project, so exploitation is likely to be opportunistic/targeted against the few exposed instances rather than mass-scanned, and absence of EPSS/KEV should not be read as low technical risk - only as low current evidence of in-the-wild activity.

Exploit ScenarioDerived

An attacker who can reach the API network endpoint sends an unauthenticated POST /calc-rule/create containing a script payload such as JavaScript that shells out or exfiltrates data, then triggers evaluation of the rule so quick_js::Context::eval() executes it in the server process. Because no authentication, user interaction, or special complexity is required (AV:N/AC:L/PR:N/UI:N), a single crafted request chain yields code execution. No public POC was provided, but the attack is straightforward to reproduce from the described source paths.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Unauthenticated remote code execution in iot-ecology's rust-iot-platform allows attackers to run arbitrary JavaScript in the server process by creating a malicious "calc rule". The POST /calc-rule/create endpoint omits the AuthToken guard applied to other routes, and the supplied script field is later passed unsandboxed to quick_js::Context::eval(), giving full script execution once triggered. CVSS is 9.8; no public exploit identified at time of analysis, though the flaw is trivially reachable and the root cause is confirmed by source-level reference.

RemediationAI

No vendor-released patch identified at time of analysis and no fixed version was provided, so apply compensating controls immediately. First, restore authentication by adding the AuthToken request guard to POST /calc-rule/create in api/src/controller/calc_rule_router.rs so the endpoint matches the rest of the API; this closes the unauthenticated reachability with minimal functional side effects. Second, eliminate or constrain the eval sink in api/src/biz/calc_run_biz.rs - replace quick_js::Context::eval() on raw user input with a restricted expression evaluator or, if QuickJS must stay, run it with a locked-down context (no host bindings), memory and execution-time limits, and strict input validation of the script field; note this may break legitimate complex rules and require a rule allowlist. As a network-layer stopgap, block or restrict access to the /calc-rule/create endpoint at a reverse proxy or WAF and place the API behind a VPN/trusted network, accepting that this also limits legitimate remote rule management. Track the project repository (https://github.com/iot-ecology/rust-iot-platform) for an official fix and cite the exact patched version once published rather than inventing one.

Affected VersionsENISA

rust-iot-platform 0 ≤*

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

rust-iot-platform is a Rust-based IoT data/management platform (Actix-style API in api/src) that evaluates user-defined "calc rules" - small JavaScript expressions used to transform or compute over IoT telemetry - through the QuickJS engine via the quick_js crate's Context::eval(). The vulnerability is a classic CWE-94 Code Injection: attacker-controlled input (the calc rule's script field) flows directly into a language interpreter with no sandbox, allowlist, or timeout, so arbitrary JS runs with the privileges of the API process. Compounding this, the create route in api/src/controller/calc_rule_router.rs does not include the AuthToken request guard used on sibling routes, so the injection sink is reachable pre-authentication. The affected package per CPE is cpe:2.3:a:iot-ecology:rust-iot-platform.

Know when Rust Iot Platform gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

Missing auth guard makes the endpoint network-reachable with no privileges (PR:N/AV:N/AC:L), and unsandboxed eval() yields full code execution, so C/I/A all High.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

rust-iot-platform allows creating a "calc rule" via POST /calc-rule/create (api/src/controller/calc_rule_router.rs) containing an arbitrary script field. This route does not take the AuthToken request guard used elsewhere in the application, making it reachable without authentication. The stored script is subsequently executed via quick_js::Context::eval() in api/src/biz/calc_run_biz.rs with no sandboxing, allowing an unauthenticated attacker to achieve arbitrary JavaScript execution in the server process by creating and triggering a malicious calc rule.

Executive ViewAI

Why It Matters

rust-iot-platform contains a critical unauthenticated remote code execution vulnerability (CVE-2026-71278, CVSS 9.8) that allows attackers to execute arbitrary JavaScript code on affected servers without credentials. This affects any organization deploying this IoT platform and requires immediate containment, as no vendor patch is currently available.

Business Impact: Severe
Compensating Controls

Until patch available: (1) Disable or isolate the /calc-rule/create endpoint at network or application gateway layer; (2) Implement Web Application Firewall rules rejecting POST requests to /calc-rule/create; (3) Restrict network access to rust-iot-platform instances to trusted internal networks only; (4) Deploy enhanced monitoring and logging on POST requests to /calc-rule/create and unexpected JavaScript execution in application server processes; (5) Conduct network segmentation review to limit blast radius if endpoint is compromised.

Threat Intelligence Overview

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Rare
niche open-source Rust IoT project, minimal enterprise deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy