CVE-2011-10007

NameCVE-2011-10007
DescriptionFile::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)
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4209-1, DSA-5936-1
Debian Bugs1107311

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libfile-find-rule-perl (PTS)bullseye0.34-1vulnerable
bullseye (security)0.34-1+deb11u1fixed
bookworm (security)0.34-4~deb12u1fixed
trixie, bookworm0.34-3vulnerable
sid0.34-4fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libfile-find-rule-perlsourcebullseye0.34-1+deb11u1DLA-4209-1
libfile-find-rule-perlsourcebookworm0.34-4~deb12u1DSA-5936-1
libfile-find-rule-perlsource(unstable)0.34-41107311

Notes

https://lists.security.metacpan.org/cve-announce/msg/30183067/
https://rt.cpan.org/Public/Bug/Display.html?id=64504
https://github.com/richardc/perl-file-find-rule/pull/4
Fixed by: https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f3fe1357e575ad56f

Search for package or bug name: Reporting problems