OS Command Injection Affecting perl-File-Find-Rule package, versions *


Severity

Recommended
0.0
high
0
10

Based on CentOS security rating.

Threat Intelligence

EPSS
0.05% (16th 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-CENTOS6-PERLFILEFINDRULE-10314941
  • published6 Jun 2025
  • disclosed5 Jun 2025

Introduced: 5 Jun 2025

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

How to fix?

There is no fixed version for Centos:6 perl-File-Find-Rule.

NVD Description

Note: Versions mentioned in the description apply only to the upstream perl-File-Find-Rule package and not the perl-File-Find-Rule package as distributed by Centos. See How to fix? for Centos:6 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