Path traveresal in iTunesRPC-Remastered
Description
iTunesRPC-Remastered is a Discord Rich Presence for iTunes on Windows utility. In affected versions iTunesRPC-Remastered did not properly sanitize user input used to remove files leading to file deletion only limited by the process permissions. Users are advised to upgrade as soon as possible.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Path traversal in iTunesRPC-Remastered allows arbitrary file deletion by unsanitized user input.
Vulnerability
In iTunesRPC-Remastered, a Discord Rich Presence utility for iTunes on Windows, versions affected by the commits 3fa8bbf, 1bda8d1, 12a9590, 428b361, 34fb194, b521636, ef3583e, and f5efa6a are vulnerable. The vulnerability exists in server.py where user-supplied filenames are passed directly to the remove() function without sanitization, leading to a path traversal condition (CWE-22, CWE-23, CWE-36, CWE-73, CWE-99).
Exploitation
An attacker who can send crafted HTTP requests to the running application can control the filename argument to the remove() function. By supplying a path with traversal sequences (e.g., ../), the attacker can cause deletion of files outside the intended directory. No authentication is required, and the only limiting factor is the file system permissions of the process.
Impact
Successful exploitation allows an attacker to delete arbitrary files on the system that the process has write access to. This is a severe integrity impact, potentially leading to data loss or service disruption. Confidentiality and availability are not directly affected, but the deletion of critical files can indirectly affect them.
Mitigation
The vulnerability was patched in commit 1eb1e54 by importing secure_filename from werkzeug.utils and wrapping the removal call with werkzeug.utils.secure_filename(filename). Users should upgrade to any commit after 1eb1e54 (i.e., the latest source from the repository). As a workaround, users can manually apply the same code change to their local installation [1][2].
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
2(expand)+ 1 more
- (no CPE)
- (no CPE)range: commits prior to 1eb1e54
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
2- github.com/bildsben/iTunesRPC-Remastered/commit/1eb1e5428f0926b2829a0bbbb65b0d946e608593mitrex_refsource_MISC
- github.com/bildsben/iTunesRPC-Remastered/security/advisories/GHSA-cc8j-fr7v-7r6qmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.