""" ======================================================================== CVE-2011-10007 CPAN Security Group ======================================================================== CVE ID: CVE-2011-10007 Distribution: File-Find-Rule Versions: through 0.34 MetaCPAN: https://metacpan.org/dist/File-Find-Rule VCS Repo: https://github.com/richardc/perl-file-find-rule File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted file name 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) Problem types ------------- - CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') Solutions --------- Users should update to a fixed version when available, or apply the patch provided in the references section, or use a patched version provided by their OS distribution """
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be864746e173558ae6ef99397c6e1f1104f4df88 commit be864746e173558ae6ef99397c6e1f1104f4df88 Author: Sam James <sam@gentoo.org> AuthorDate: 2025-06-05 18:20:50 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-06-05 18:20:50 +0000 dev-perl/File-Find-Rule: add 0.350.0 Bug: https://bugs.gentoo.org/957182 Signed-off-by: Sam James <sam@gentoo.org> dev-perl/File-Find-Rule/File-Find-Rule-0.350.0.ebuild | 19 +++++++++++++++++++ dev-perl/File-Find-Rule/Manifest | 1 + 2 files changed, 20 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/data/glsa.git/commit/?id=065d592ea76de8de3b2a4a29f35411d4e22ab25c commit 065d592ea76de8de3b2a4a29f35411d4e22ab25c Author: GLSAMaker <glsamaker@gentoo.org> AuthorDate: 2025-06-12 09:56:52 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2025-06-12 09:57:03 +0000 [ GLSA 202506-10 ] File-Find-Rule: Shell Injection Bug: https://bugs.gentoo.org/957182 Signed-off-by: GLSAMaker <glsamaker@gentoo.org> Signed-off-by: Hans de Graaff <graaff@gentoo.org> glsa-202506-10.xml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+)