CPANSA-File-Rotate-Simple-2026-17435: File-Rotate-Simple vulnerability

Publisher giterlizzi Document category csaf_security_advisory
Initial release date 2026-08-07T00:00:00 Engine CSAF Perl Toolkit 0.26
Current release date 2026-08-07T00:00:00 Build Date
Current version 1 Status final
CVSS v3.1 Base Score 2.5 Severity Low
Original language Language en
Also referred to

Vulnerability 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.

Vulnerabilities

CVE-2026-17435

Vulnerability 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.

Weakness CWE-59 : Improper Link Resolution Before File Access ('Link Following')

Product status

Known affected
Product Score
File-Rotate-Simple less than 0.4.0
CVSS Version CVSS Vector CVSS Base Score CVSS Base Severity
3.1 CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N 2.5 Low
Fixed

giterlizzi

Namespace: https://github.com/giterlizzi/

gdt@cpan.org

References

Revision history

Version Date of the revision Summary of the revision
1 Fri Aug 7 00:00:00 2026 First release

Sharing rules

TLP:WHITE
For the TLP version see: https://www.first.org/tlp/