CVE-2026-71284: CWE-78 in fledge-iot fledge
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.
AI Analysis
Technical Summary
The fledge backup-restore upload handler function upload_backup() uses the first extracted tar member's filename to construct a shell command via string formatting without proper escaping or quoting. The filename is only checked for a prefix and suffix, which can be bypassed by including shell command substitutions such as $(id>/tmp/pwn) in the filename. Since os.system() invokes a shell, this leads to arbitrary OS command execution when an admin uploads a crafted backup archive. This is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command).
Potential Impact
An attacker with administrative privileges who can upload backup archives can execute arbitrary operating system commands on the host running fledge. This can lead to full system compromise, data theft, or disruption of service. The vulnerability impacts confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid uploading backup archives with untrusted filenames or restrict backup upload functionality to trusted administrators only. Monitor vendor channels for official patches or updates addressing this issue.
CVE-2026-71284: CWE-78 in fledge-iot fledge
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 v3.1
Score 7.2high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The fledge backup-restore upload handler function upload_backup() uses the first extracted tar member's filename to construct a shell command via string formatting without proper escaping or quoting. The filename is only checked for a prefix and suffix, which can be bypassed by including shell command substitutions such as $(id>/tmp/pwn) in the filename. Since os.system() invokes a shell, this leads to arbitrary OS command execution when an admin uploads a crafted backup archive. This is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command).
Potential Impact
An attacker with administrative privileges who can upload backup archives can execute arbitrary operating system commands on the host running fledge. This can lead to full system compromise, data theft, or disruption of service. The vulnerability impacts confidentiality, integrity, and availability as indicated by the CVSS vector (C:H/I:H/A:H).
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid uploading backup archives with untrusted filenames or restrict backup upload functionality to trusted administrators only. Monitor vendor channels for official patches or updates addressing this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-08-05T12:23:34.968Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7336e7bf8831d539ed92e6
Added to database: 08/05/2026, 13:13:11 UTC
Last enriched: 08/05/2026, 13:27:23 UTC
Last updated: 08/05/2026, 23:20:03 UTC
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.