CyberRota Analysis
AI-GeneratedVersions of File::Rotate::Simple prior to 0.4.0 for Perl are vulnerable to a security issue where the rotation process can create dangling symlinks, leading to the creation of arbitrary files with the permissions of the rotating process. This vulnerability can be exploited by an attacker with the ability to create symlinks, potentially allowing unauthorized file manipulation. Organizations using affected versions, especially those with the touch option enabled, should prioritize updating to mitigate this risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
File::Rotate::Simple versions before 0.4.0 for Perl create the target of dangling symlinks when rotating files. When the file to be rotated is a symbolic link to a missing file, and the touch option is enabled, then the rotate method assumes that the file is absent (since the existence check is against the target), and does not rotate it. But it touches the file, which creates the target. An attacker that has the ability to create the symlink can use this to create an arbitrary file with permissions of the process rotating the files (which may be different from the process that normally writes to the log file that is being rotated). Note that the touch option is disabled by default.