CVE-2011-10007: RCLAMP File::Find::Rule · OS Command Injection
Affects RCLAMP File::Find::RuleSource CVE Database V5
Not known to be exploited · CVSS 8.8 High.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.8% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 5 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| RCLAMP File::Find::Rule | Affected
| Fixed in– |
AI-suggested
- Avoid using vulnerable versions of File::Find::Rule (0.34 and earlier). Upgrade to a patched or newer version once available.
- If upgrading is not immediately possible, modify scripts to avoid using the two-argument form of open() with untrusted input; use the three-argument form of open() to separate the mode from the filename, preventing command injection.
- Sanitize and validate all filenames before processing, rejecting or escaping special characters that could be interpreted as shell metacharacters.
- Implement strict access controls and monitoring on directories scanned by File::Find::Rule to prevent introduction of malicious filenames.
- Use application whitelisting and runtime protection to detect and block unexpected command executions.
- Employ intrusion detection systems (IDS) and endpoint detection and response (EDR) tools to monitor for suspicious activity related to Perl script execution.
- Educate developers and system administrators about safe Perl coding practices, especially regarding file handling and command execution.
- Restrict the execution context of Perl scripts to least privilege to limit the impact of potential exploitation.
Description
File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted filename. A file handle is opened with the 2 argument form of `open()` allowing an attacker controlled filename to provide the MODE parameter to `open()`, turning the filename into a command to be executed. Example: $ mkdir /tmp/poc; echo > "/tmp/poc/|id" $ perl -MFile::Find::Rule \ -E 'File::Find::Rule->grep("foo")->in("/tmp/poc")' uid=1000(user) gid=1000(user) groups=1000(user),100(users)
References
- metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Rule.pm (opens in a new tab)
- rt.cpan.org/Public/Bug/Display.html?id=64504 (opens in a new tab)
- github.com/richardc/perl-file-find-rule/pull/4 (opens in a new tab)
- github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f3fe1357e575ad56f.patch (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/06/msg00006.html (opens in a new tab)
- openwall.com/lists/oss-security/2025/06/05/4 (opens in a new tab)
- openwall.com/lists/oss-security/2025/06/06/1 (opens in a new tab)
- openwall.com/lists/oss-security/2025/06/06/3 (opens in a new tab)