CVEfocus › CVE database › CVE-2011-10007

CVE-2011-10007File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when…

CVSS 8.8 HighEPSS 0.9% (higher than 59% of CVEs)Published 2025-06-05Updated 2025-06-11Assigner: CPANSec

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)

CWE-78

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
3Fix pending
2Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libfile-find-rule-perlNot affected
vulnerable_code_not_present
Ubuntu 25.10libfile-find-rule-perlNot affected
vulnerable_code_not_present
Ubuntu 24.04libfile-find-rule-perlFixed0.34-3ubuntu0.24.04.1UBUNTU-CVE-2011-10007
Ubuntu 22.04libfile-find-rule-perlFixed0.34-1ubuntu0.22.04.1UBUNTU-CVE-2011-10007
Ubuntu 20.04libfile-find-rule-perlFix pendingUBUNTU-CVE-2011-10007
Ubuntu 18.04libfile-find-rule-perlFix pendingUBUNTU-CVE-2011-10007
Ubuntu 16.04libfile-find-rule-perlFix pendingUBUNTU-CVE-2011-10007
Debian 14libfile-find-rule-perlFixed0.34-4DEBIAN-CVE-2011-10007
Debian 13libfile-find-rule-perlFixed0.34-4DEBIAN-CVE-2011-10007
Debian 12libfile-find-rule-perlFixed0.34-4~deb12u1DEBIAN-CVE-2011-10007
Red Hat Enterprise Linux 9perl-File-Find-RuleFixed0:0.34-19.1.el9_6RHSA-2025:9517
Red Hat Enterprise Linux 8perl-File-Find-RuleFixed0:0.34-9.el8_10RHSA-2025:9605
Red Hat Enterprise Linux 6perl-File-Find-RuleWill not fix
Out of support scope
Red Hat Enterprise Linux 6perl-File-Find-Rule-PerlWill not fix
Out of support scope
AlmaLinux 9perl-File-Find-RuleFixed0.34-19.1.el9_6ALSA-2025:9517
AlmaLinux 8perl-File-Find-RuleFixed0.34-9.el8_10ALSA-2025:9605
Rocky Linux 9perl-File-Find-RuleFixed0:0.34-19.1.el9_6RLSA-2025:9517
Rocky Linux 8perl-File-Find-RuleFixed0:0.34-9.el8_10RLSA-2025:9605
Alpine Linux 3.24perl-file-find-ruleFixed0.35-r0ALPINE-CVE-2011-10007
Alpine Linux 3.23perl-file-find-ruleFixed0.35-r0ALPINE-CVE-2011-10007
Alpine Linux 3.22perl-file-find-ruleFixed0.35-r0ALPINE-CVE-2011-10007

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: 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

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.