8.8 HIGH
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): LOW
- Privileges required (PR): NONE
- User interaction (UI): REQUIRED
- Scope (S): UNCHANGED
- Confidentiality impact (C): HIGH
- Integrity impact (I): HIGH
- Availability impact (A): HIGH
File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted file name
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)
References
- https://github.com/richardc/perl-file-find-rule/pull/4 issue-tracking
- https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f… patch
- https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Ru…
- https://rt.cpan.org/Public/Bug/Display.html?id=64504 issue-tracking exploit
- https://github.com/richardc/perl-file-find-rule/pull/4 exploit
- https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html
- http://www.openwall.com/lists/oss-security/2025/06/05/4
- https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Ru…
- https://rt.cpan.org/Public/Bug/Display.html?id=64504 issue-tracking exploit
- https://github.com/richardc/perl-file-find-rule/pull/4 issue-tracking
- https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f… patch
- https://github.com/richardc/perl-file-find-rule/pull/4 exploit
- http://www.openwall.com/lists/oss-security/2025/06/05/4
- http://www.openwall.com/lists/oss-security/2025/06/06/1
- http://www.openwall.com/lists/oss-security/2025/06/06/3
- https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html
- https://github.com/richardc/perl-file-find-rule/pull/4 issue-tracking
- https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f… patch
- https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Ru…
- https://rt.cpan.org/Public/Bug/Display.html?id=64504 issue-tracking exploit
- https://github.com/richardc/perl-file-find-rule/pull/4 exploit
- https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html
- http://www.openwall.com/lists/oss-security/2025/06/05/4
- http://www.openwall.com/lists/oss-security/2025/06/06/1
- http://www.openwall.com/lists/oss-security/2025/06/06/3
Affected products
- =<0.34
Matching in nixpkgs
pkgs.perlPackages.FileFindRule
File::Find::Rule is a friendlier interface to File::Find
-
nixos-unstable -
- nixpkgs-unstable 0.34
pkgs.perl538Packages.FileFindRule
File::Find::Rule is a friendlier interface to File::Find
-
nixos-unstable -
- nixpkgs-unstable 0.34
pkgs.perl540Packages.FileFindRule
File::Find::Rule is a friendlier interface to File::Find
-
nixos-unstable -
- nixpkgs-unstable 0.34
pkgs.perlPackages.FileFindRulePerl
Common rules for searching for Perl things
-
nixos-unstable -
- nixpkgs-unstable 1.16
pkgs.perl538Packages.FileFindRulePerl
Common rules for searching for Perl things
-
nixos-unstable -
- nixpkgs-unstable 1.16
pkgs.perl540Packages.FileFindRulePerl
Common rules for searching for Perl things
-
nixos-unstable -
- nixpkgs-unstable 1.16