Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Network-accessible API (AV:N), trivial filename crafting (AC:L), admin credentials required per description (PR:H), arbitrary command execution yields full CIA impact.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.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.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
Same weakness CWE-78 – OS Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-53369
GHSA-6h3f-43g6-3hqh