Vulnerability Description
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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/fledge-iot/fledge
- https://github.com/fledge-iot/fledge/blob/main/python/fledge/services/core/api/b
FAQ
What is CVE-2026-71284?
CVE-2026-71284 is a vulnerability with a CVSS score of 7.2 (HIGH). 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 comm...
How severe is CVE-2026-71284?
CVE-2026-71284 has been rated HIGH with a CVSS base score of 7.2/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-71284?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.