# CVE-2011-10007: Command injection in File::Find::Rule

> Attackers can execute arbitrary commands via crafted filenames when using the grep method in the Perl File::Find::Rule library.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 5 Jun 2025
- **Updated:** 11 Jun 2025
- **Also known as:** ALSA-2025:9517, ALSA-2025:9605, AZL-62239, AZL-62273, DEBIAN-CVE-2011-10007, DLA-4209-1, DSA-5936-1, GHSA-cvg9-q978-4569, MGASA-2025-0278, OESA-2025-1646, OESA-2025-1678, OESA-2025-1679, OESA-2025-1680, OESA-2025-1681, OESA-2025-2608, RHSA-2025:9517, RHSA-2025:9605, RHSA-2025:9658, RHSA-2025:9740, RHSA-2025:9741, RLSA-2025:9517, RLSA-2025:9605, SUSE-SU-2025:02105-1, UBUNTU-CVE-2011-10007, USN-7620-1, openSUSE-SU-2025:15260-1

## What is CVE-2011-10007?

CVE-2011-10007 is a high-severity command injection vulnerability in RCLAMP File::Find::Rule, published on 5 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official 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)

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

## Which versions are affected by CVE-2011-10007?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `perl-File-Find-Rule` | AlmaLinux:8 | All versions | 0.34-9.el8_10 |
| `perl-File-Find-Rule` | AlmaLinux:9 | All versions | 0.34-19.1.el9_6 |
| `perl-File-Find-Rule` | Red Hat:enterprise_linux:8::crb | All versions | 0:0.34-9.el8_10 |
| `perl-File-Find-Rule` | Red Hat:enterprise_linux:9::crb | All versions | 0:0.34-19.1.el9_6 |
| `perl-File-Find-Rule` | Red Hat:rhel_els:7 | All versions | 0:0.33-5.el7_9.1 |
| `perl-File-Find-Rule-Perl` | Red Hat:rhel_els:7 | All versions | 0:1.13-2.el7_9.1 |
| `perl-File-Find-Rule` | Red Hat:rhel_eus:9.4::crb | All versions | 0:0.34-19.el9_4.1 |
| `perl-File-Find-Rule` | Rocky Linux:8 | All versions | 0:0.34-9.el8_10 |
| `perl-File-Find-Rule` | Rocky Linux:9 | All versions | 0:0.34-19.1.el9_6 |
| `perl-File-Find-Rule` | SUSE:Enterprise Storage 7.1 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Manager Proxy 4.3 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | SUSE:Manager Server 4.3 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | openSUSE:Leap 15.6 | All versions | 0.34-150000.3.3.1 |
| `perl-File-Find-Rule` | openSUSE:Tumbleweed | All versions | 0.350.0-1.1 |

## How do I fix CVE-2011-10007?

Apply the vendor's patch.

## Is CVE-2011-10007 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-10007 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2011-10007 and fix it if it is affected.

What it is: CVE-2011-10007 is a high-severity command injection vulnerability in RCLAMP File::Find::Rule, published on 5 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2011-10007 exists.

Affected product: RCLAMP File::Find::Rule. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2011-10007/ (Markdown: https://insights.sbomify.com/CVE-2011-10007/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2011-10007
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2011-10007
- OSV: https://osv.dev/vulnerability/CVE-2011-10007

---
From sbomify Insights: https://insights.sbomify.com/CVE-2011-10007/
Summaries are generated and may contain mistakes; the official description above is the record.
