CVE-2011-10007
Awaiting Analysis Awaiting Analysis - Queue
BaseFortify

Publication date: 2025-06-05

Last updated on: 2025-06-06

Assigner: CPANSec

Description
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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-06-05
Last Modified
2025-06-06
Generated
2026-05-07
AI Q&A
2025-06-05
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-78 The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability exists in File::Find::Rule through version 0.34 for Perl. It allows arbitrary code execution when the grep() function processes a specially crafted filename. Specifically, the vulnerability arises because a file handle is opened using the two-argument form of open(), which lets an attacker-controlled filename be interpreted as the MODE parameter to open(). This means the filename can be turned into a command that gets executed.


How can this vulnerability impact me? :

An attacker can exploit this vulnerability to execute arbitrary code on the system running the vulnerable Perl module. This could lead to unauthorized actions such as running malicious commands, gaining control over the system, accessing sensitive data, or disrupting normal operations.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart