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 DescriptionFile::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 |
|
Fixed
- File-Rotate-Simple greater than or equal 0.4.0
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-File-Rotate-Simple-2026-17435 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-file-rotate-simple-2026-17435.json - https://github.com/robrwo/File-Rotate-Simple/commit/ead3f5c0e51217b34d286aa243949dba60b39eba.patch external
https://github.com/robrwo/File-Rotate-Simple/commit/ead3f5c0e51217b34d286aa243949dba60b39eba.patch - https://github.com/robrwo/File-Rotate-Simple/security/advisories/GHSA-fpmm-8f6h-wv74 external
https://github.com/robrwo/File-Rotate-Simple/security/advisories/GHSA-fpmm-8f6h-wv74 - https://metacpan.org/release/RRWO/File-Rotate-Simple-v0.4.0/changes external
https://metacpan.org/release/RRWO/File-Rotate-Simple-v0.4.0/changes - http://www.openwall.com/lists/oss-security/2026/08/07/7 external
http://www.openwall.com/lists/oss-security/2026/08/07/7 - CVE-2026-17435 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-17435
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/