CodeWithCJ SparkyFitness
SparkyFitness: Authenticated OS command injection (host RCE) via backup-restore filename in POST /api/admin/backup/restore
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.6.0
Fixed in 1.6.0
Mitigation
Upgrade SparkyFitness to 1.6.0 or later.
References
- Vendor advisory github.com/CodeWithCJ/SparkyFitness/security/a…
- Patch github.com/CodeWithCJ/SparkyFitness/commit/724…
- Release notes github.com/CodeWithCJ/SparkyFitness/releases/t…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.