Technical impact
ruTorrent versions before 5.3.20 contain a path traversal flaw in the datadir plugin. The correctDirectory() routine fails to resolve symbolic links, allowing an authenticated user to craft a datadir path that points outside the intended topDirectory jail. By submitting a symlink under their own top directory, the attacker can create directories and move torrent data to locations writable by the web server or rtorrent. This can result in elevated privileges or the ability to overwrite or tamper with torrent data, potentially compromising other users' data or allowing further exploitation. The weakness is identified as CWE-59, a classic path traversal/ directory traversal vulnerability.
Affected Systems
The affected product is ruTorrent, developed by Novik. All releases prior to version 5.3.20 are vulnerable, specifically 5.3.19 and earlier. The vulnerability can be exercised on any installation where an authenticated user has sufficient rights to create symbolic links within their assigned top directory.
Risk and Exploitability
The CVSS score of 6.0 indicates a medium severity. While no EPSS score is reported, the lack of a KEV listing suggests limited publicly known exploitation at the time of analysis. The attack requires authentication and the ability to create symlinks, so it is not a blind remote exploitation vector, but it can impact multiple users on a shared server. An attacker with these prerequisites can leverage the flaw to modify data or potentially elevate privileges through subsequent misuse of legitimate write permissions.