OS Command Injection Affecting perl-File-Find-Rule-Perl package, versions <0:1.13-2.amzn2.0.2


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN2-PERLFILEFINDRULEPERL-10500320
  • published25 Jun 2025
  • disclosed5 Jun 2025

Introduced: 5 Jun 2025

CVE-2011-10007  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 perl-File-Find-Rule-Perl to version 0:1.13-2.amzn2.0.2 or higher.
This issue was patched in ALAS2-2025-2908.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-File-Find-Rule-Perl package and not the perl-File-Find-Rule-Perl package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

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 Base Scores

version 3.1