Amazon Linux 2 : perl-File-Find-Rule (ALAS-2025-2891)

high Nessus Plugin ID 238357

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of perl-File-Find-Rule installed on the remote host is prior to 0.33-5. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2025-2891 advisory.

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) (CVE-2011-10007)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update perl-File-Find-Rule' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2025-2891.html

https://alas.aws.amazon.com/cve/html/CVE-2011-10007.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: High

ID: 238357

File Name: al2_ALAS-2025-2891.nasl

Version: 1.1

Type: local

Agent: unix

Published: 6/12/2025

Updated: 6/12/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2011-10007

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:perl-file-find-rule

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 6/12/2025

Vulnerability Publication Date: 6/5/2025

Reference Information

CVE: CVE-2011-10007