{"id":"CVE-2026-71284","summary":"Fledge IoT Gateway Backup Restore OS Command Injection via Tar Member Filename","details":"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\u003e/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.","modified":"2026-08-07T03:47:00.280933277Z","published":"2026-08-05T12:26:30.030Z","database_specific":{"cwe_ids":["CWE-78"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71284.json","cna_assigner":"TuranSec"},"references":[{"type":"WEB","url":"https://github.com/fledge-iot/fledge/blob/main/python/fledge/services/core/api/backup_restore.py"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71284.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71284"},{"type":"PACKAGE","url":"https://github.com/fledge-iot/fledge"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/fledge-iot/fledge","events":[{"introduced":"0"},{"last_affected":"f90ffc2047ee49a380ada98a59fcc2985bd6a943"}],"database_specific":{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"0"},{"last_affected":"3.1.0"}]}}],"versions":["v3.1.0","v3.0.0","v2.6.0","v2.5.0","v2.4.0","v2.3.0","v2.2.0","v2.1.0","v2.0.1","v2.0.0","v1.9.2","v1.9.1","v1.9.0","v1.8.2","v1.8.1","v1.8.0","1.4.1","1.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-71284.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"}]}