CVE-2026-71284: Fledge IoT Gateway Backup Restore OS Command Injection via Tar Member Filename
Fledge's backup-restore upload handler, uploadbackup() (python/fledge/services/core/api/backuprestore.py), takes the first extracted tar member's filename (tarfilenames[0]) and builds a shell command via string formatting: cmd = "cp {} {}".format(source, backuppath); retcode = os.system(cmd). The only pre-check on the filename is a prefix/suffix match (startswith(backupprefix), endswith(validextensions)), which a name such as fledgebackup$(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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-71284?
CVE-2026-71284 has a high severity rating of 7.2.
What type of vulnerability is CVE-2026-71284?
CVE-2026-71284 is categorized as an OS Command Injection vulnerability.
How do I fix CVE-2026-71284?
To fix CVE-2026-71284, implement input validation and sanitize filenames before executing any shell commands.
What is affected by CVE-2026-71284?
CVE-2026-71284 affects the Fledge IoT Gateway's backup-restore functionality.
When was CVE-2026-71284 published?
CVE-2026-71284 was published on August 5, 2026.