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.
Published: 2026-08-07
Score: 2.5 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Before version 0.4.0, the File::Rotate::Simple Perl module creates the target of dangling symlinks when rotating log files. If a user can create a symlink pointing to a missing file and the touch option is enabled, the module will touch the filename, causing the filesystem to create the target file with the permissions of the process performing the rotation. This permits an attacker to place arbitrary files—such as scripts or binaries—under a process’s authority, potentially enabling privilege escalation or subsequent exploitation. The vulnerability is a consequence of CWE-59.

Affected Systems

The vulnerability affects all installations of the File::Rotate::Simple module by RRWO that are earlier than version 0.4.0. No specific operating systems or Perl versions are singled out, but any environment that runs this module and performs log rotation is potentially exposed.

Risk and Exploitability

The exploit requires an attacker who can create symbolic links in the directory that File::Rotate::Simple rotates and who has the ability to enable the touch option, which is disabled by default. The CVSS score of 2.5 indicates low overall severity, and the EPSS score of < 1 % reflects a very low probability of exploitation in the wild. The vulnerability is not listed in CISA’s KEV catalog. Given that the attacker needs local file system write privileges to create the symlink and that enabling touch requires explicit configuration, the likelihood of exploitation remains low to moderate. However, if successful, the malicious file would be created with the privileges of the process performing the rotation, potentially allowing privilege escalation.

Generated by OpenCVE AI on August 13, 2026 at 11:07 UTC.

Remediation

Vendor Solution

Upgrade to version 0.4.0 or later.


Vendor Workaround

For deployments that cannot be upgraded, ensure the touch option is disabled.


OpenCVE Recommended Actions

  • Upgrade File::Rotate::Simple to version 0.4.0 or later.
  • If an upgrade is not possible, ensure the touch option is disabled in the module’s configuration.
  • Restrict the creation of symbolic links in the log rotation directory by configuring appropriate filesystem permissions or ACLs.

Generated by OpenCVE AI on August 13, 2026 at 11:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 11 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 2.5, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 08 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Rrwo
Rrwo file::rotate::simple
Vendors & Products Rrwo
Rrwo file::rotate::simple

Fri, 07 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
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.
Title File::Rotate::Simple versions before 0.4.0 for Perl create the target of dangling symlinks when rotating files
Weaknesses CWE-59
References

Subscriptions

Rrwo File::rotate::simple
cve-icon MITRE

Status: PUBLISHED

Assigner: CPANSec

Published:

Updated: 2026-08-11T20:12:53.926Z

Reserved: 2026-07-25T12:35:32.249Z

Link: CVE-2026-17435

cve-icon Vulnrichment

Updated: 2026-08-07T21:14:39.112Z

cve-icon NVD

Status : Deferred

Published: 2026-08-07T19:17:37.923

Modified: 2026-08-26T16:51:19.490

Link: CVE-2026-17435

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T11:15:05Z

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')