Skip to main content

Fledge IoT CVE-2026-71284

| EUVDEUVD-2026-53369 HIGH
OS Command Injection (CWE-78)
2026-08-05 TuranSec GHSA-6h3f-43g6-3hqh
7.2
CVSS 3.1 · Vendor: TuranSec
Share

Severity by source

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

Network-accessible API (AV:N), trivial filename crafting (AC:L), admin credentials required per description (PR:H), arbitrary command execution yields full CIA impact.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/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
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
Aug 05, 2026 - 13:44 vuln.today
CVE Published
Aug 05, 2026 - 12:26 cve.org
HIGH 7.2

DescriptionCVE.org

Fledge's backup-restore upload handler, upload_backup() (python/fledge/services/core/api/backup_restore.py), takes the first extracted tar member's filename (tar_file_names[0]) and builds a shell command via string formatting: cmd = "cp {} {}".format(source, backup_path); ret_code = os.system(cmd). The only pre-check on the filename is a prefix/suffix match (startswith(backup_prefix), endswith(valid_extensions)), which a name such as fledge_backup_$(id>/tmp/pwn).db satisfies while still injecting a shell command substitution. Because os.system() invokes a shell and no quoting (shlex.quote, list-form subprocess) is applied, an admin uploading a crafted backup archive achieves arbitrary OS command execution.

AnalysisAI

Command injection in Fledge's backup-restore upload handler allows an authenticated administrator to execute arbitrary OS commands on the underlying host by uploading a crafted tar archive. The vulnerable function upload_backup() in python/fledge/services/core/api/backup_restore.py constructs a shell command via unsanitized string formatting and passes it directly to os.system(), while filename validation only checks prefix and suffix - a filename such as fledge_backup_$(id>/tmp/pwn).db satisfies both checks while embedding a shell command substitution. CVSS 7.2 (PR:H) reflects the admin privilege prerequisite; no public exploit or CISA KEV listing has been identified at time of analysis, but the technique is trivially reproducible given access.

Technical ContextAI

Fledge is an open-source IIoT data historian and edge processing platform (cpe:2.3:a:fledge-iot:fledge:*:*:*:*:*:*:*:*). The flaw resides in the Python REST API layer at python/fledge/services/core/api/backup_restore.py. The root cause is CWE-78 (Improper Neutralization of Special Elements used in an OS Command), specifically the pattern: cmd = 'cp {} {}'.format(source, backup_path) followed by os.system(cmd). Python's os.system() invokes /bin/sh -c, which interprets shell metacharacters including $() command substitution, backticks, semicolons, and pipes. The only guard - a startswith()/endswith() check on the tar member's filename - is a classic allowlist bypass; it checks prefix and suffix independently, leaving the middle of the string entirely unvalidated. The correct remediation pattern would use shlex.quote() on all interpolated paths, or preferably replace os.system() with subprocess.run() in list form (e.g., ['cp', source, backup_path]) which never invokes a shell.

RemediationAI

The primary fix is to replace the os.system() string-formatting pattern with either shlex.quote() applied to all user-controlled path components before interpolation, or - preferably - the list-form subprocess.run(['cp', source, backup_path], check=True) which bypasses the shell entirely and eliminates the injection surface. The fix must be applied to the upload_backup() function in python/fledge/services/core/api/backup_restore.py; review adjacent functions in the same file for the same anti-pattern. Until a patched release is available (no fixed version confirmed at time of analysis; track https://github.com/fledge-iot/fledge for releases), compensating controls include: restricting access to the Fledge REST API to a dedicated operations network segment rather than broad LAN/WAN exposure; enforcing multi-factor authentication or strong credential controls on administrator accounts; and auditing which accounts hold admin privileges to minimize the blast radius of credential compromise. Disabling the backup-restore upload endpoint entirely is the most effective workaround if that feature is not operationally required.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Share

CVE-2026-71284 vulnerability details – vuln.today

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