Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as global administrator
-
DeliveryUpload restore archive with metacharacter filename
-
ExploitFilename interpolated into tar shell command
-
ExecutionArbitrary OS commands execute as server process
-
ImpactHost compromise / lateral movement
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 GLOBAL ADMINISTRATOR account on the SparkyFitness server and access to the api/admin/backup/restore endpoint; the attacker must be able to upload a restore archive AND control its filename, embedding shell metacharacters that the pre-1.6.0 backup/restore code interpolates into a tar shell command. Limiting factors: this is NOT remote-unauthenticated - the highest-level application privilege (global admin) is mandatory, which confines the threat to malicious or compromised administrators (or admin-session/credential theft); no non-default feature toggle is needed since backup/restore is a built-in admin function, but the admin-only gate is the decisive constraint. Affected: all versions prior to 1.6.0; fixed in 1.6.0. |
| Impact | This is a genuine OS command injection (CWE-78) in SparkyFitness's api/admin/backup/restore endpoint, confirmed by the vendor advisory GHSA-jh96-mj9m-x796 and the fix commit 724730b, which replaces shell string interpolation (exec with a tar command built from the uploaded filename) with argument-array execution (execFile) and a server-generated random filename. The provided CVSS vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, base 7.2) is self-consistent: network-reachable HTTP upload, low complexity, no user interaction, full impact via RCE, but critically gated by PR:H - exploitation requires an authenticated GLOBAL ADMINISTRATOR, which is the single largest risk-reducing factor. No EPSS score was supplied, this CVE is NOT in CISA KEV, and no public POC was referenced, so there is no public exploit identified at time of analysis. The practical consequence: an attacker who is already a global admin can escalate from application-level control to arbitrary OS command execution as the server process - a real privilege-boundary break and lateral-movement/persistence enabler - but a remote unauthenticated attacker cannot reach it. Net assessment: a legitimate high-severity bug worth patching, but not an emergency mass-exploitation threat; the PR:H barrier plus the niche, self-hosted deployment footprint keep real-world widespread-exploitation risk low. No signals are internally conflicting; the CVSS vector matches the description (admin-authenticated network upload). |
| Exploit ScenarioDerived | A user who already holds global administrator rights on a SparkyFitness instance uploads a database restore archive whose filename contains shell metacharacters (e.g. backticks or a semicolon). Because the pre-1.6.0 code interpolates that filename directly into a tar shell command, the embedded commands execute with the Node server process's privileges, yielding arbitrary OS command execution on the host. No public proof-of-concept was referenced, and exploitation is low-complexity (AC:L) but requires valid admin authentication (PR:H). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 16, 2026
OS command injection in SparkyFitness versions prior to 1.6.0 allows an authenticated global administrator to execute arbitrary operating-system commands on the server by uploading a restore archive with a filename containing shell metacharacters. The vulnerability resides in the api/admin/backup/restore endpoint, which improperly interpolates the user-supplied filename into a shell command. Exploitation requires the highest-level application privilege (global admin), and no public exploit code has been identified at time of analysis. The issue is fixed in version 1.6.0.
RemediationAI
Upgrade to SparkyFitness version 1.6.0 or later, which contains the vendor-released patch. The fix commit 724730b replaces shell string interpolation with argument-array execution using execFile and generates a random filename for uploaded restore archives, preventing command injection. For details, refer to the vendor advisory at https://github.com/CodeWithCJ/SparkyFitness/security/advisories/GHSA-jh96-mj9m-x796. As a workaround, restrict access to the backup/restore functionality to trusted administrators and monitor for suspicious filenames containing shell metacharacters; however, the vulnerability inherently requires global admin privileges, so this only reduces the attack surface. No other compensating controls are known; patching is strongly recommended.
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
The vulnerability is a classic OS command injection (CWE-78) in the Node.js/TypeScript backend of SparkyFitness, specifically within the backup and restore service. Prior to version 1.6.0, the application used the child_process.exec function to execute tar commands, constructing the command string by directly concatenating the uploaded filename (e.g., 'tar -xzf ${backupFilePath} -C ...'). Because the filename is attacker-controlled, shell metacharacters (such as ';', '|', '$()') are interpreted by the shell, leading to arbitrary command execution. The fix commit 724730b replaces exec with execFile, which separates arguments and avoids shell interpretation, and also generates a random server-side filename for the uploaded archive using randomUUID, eliminating the injection vector. The CPE cpe:2.3:a:codewithcj:sparkyfitness:*:*:*:*:*:*:*:* indicates all versions of the SparkyFitness product are potentially affected, but the advisory confirms the issue exists only in versions prior to 1.6.0.
Know when Sparkyfitness 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
Remote HTTP admin upload gives AV:N/AC:L/UI:N; global-administrator requirement forces PR:H; shell command execution as the server process yields full C:H/I:H/A:H, scope unchanged.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
SparkyFitness is a self-hosted, AI-powered health and fitness tracker for families. Prior to 1.6.0, the api/admin/backup/restore endpoint interpolates an uploaded filename into a shell command. An authenticated global administrator uploads a restore archive with a crafted filename. The administrator can supply a restore archive with a filename containing shell metacharacters. Successful exploitation can execute arbitrary operating-system commands with the server process privileges. This issue is fixed in version 1.6.0.
Technical POC Analysis
CWE-78 OS command injection in SparkyFitnessServer.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SparkyFitness versions prior to 1.6.0 contain a high-severity OS command injection flaw that allows a global administrator to execute arbitrary commands on the server. This vulnerability could lead to full system compromise, data loss, or lateral movement within the network, affecting organizational operations and sensitive data. While no public exploit identified at time of analysis and exploitation requires high-level privileges, the potential impact warrants immediate remediation.
Apply vendor patch.
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.
More in Sparkyfitness
View allSparkyFitness v0.15.8.2 is vulnerable to Cross Site Scripting (XSS) via user input and LLM output. [CVSS 6.1 MEDIUM]
Server-side request forgery in SparkyFitness (self-hosted AI health and fitness tracker) before version 1.6.0 lets an au
EUVD-2026-102913
NVD
CVE.org
GitHub
Exploit-DB