CVE-2011-10007 File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted file name
HighCVSS 8.8
EPSS 0.86%
- Published
- Updated
- Exploit status
- No public exploit known
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)
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/libfile-find-rule-perl(Debian:12) | < 0.34-4~deb12u1 | 0.34-4~deb12u1 |
| debian/libfile-find-rule-perl(Debian:12) | = 0.34-3 | No fix listed |
| debian/libfile-find-rule-perl(Debian:13) | < 0.34-4 | 0.34-4 |
| debian/libfile-find-rule-perl(Debian:14) | < 0.34-4 | 0.34-4 |
| alpine/perl-file-find-rule(Alpine:v3.22) | < 0.35-r0 | 0.35-r0 |
| alpine/perl-file-find-rule(Alpine:v3.23) | < 0.35-r0 | 0.35-r0 |
| alpine/perl-file-find-rule(Alpine:v3.24) | < 0.35-r0 | 0.35-r0 |
| ubuntu/libfile-find-rule-perl(Ubuntu:24.04) | < 0.34-3ubuntu0.24.04.1 | 0.34-3ubuntu0.24.04.1 |
| RCLAMP File::Find::Rule | <= 0.34 | No fix listed |
| ubuntu/libfile-find-rule-perl(Ubuntu:22.04) | < 0.34-1ubuntu0.22.04.1 | 0.34-1ubuntu0.22.04.1 |
References
- Ubuntu CVE tracker vendor-advisory
- USN-7620-1 vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2011-10007 vendor-advisory
- security.alpinelinux.org vendor-advisory
- metacpan.org
- rt.cpan.org exploit issue-tracking
- github.com exploit issue-tracking
- github.com patch
- lists.debian.org
- www.openwall.com
- www.openwall.com
- www.openwall.com
- bugs.debian.org issue-tracking