CVE-2022-40797: Roxy Fileman - Remote Code Execution
- Cve: CVE-2022-40797
- Name: Roxy Fileman - Remote Code Execution
- Description: Roxy Fileman 1.4.6 allows Remote Code Execution via a .phar upload, because the default FORBIDDEN_UPLOADS value in conf.json only blocks .php, .php4, and .php5 files. (Visiting any .phar file invokes the PHP interpreter in some realistic web-server configurations.)
- Impact: Attackers can execute arbitrary code on the server by uploading malicious .phar files, leading to full system compromise.
- Remediation: Update to a version with improved upload restrictions or modify conf.json to block .phar files.
- Vulnerability type: unrestricted_file_upload
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.04148
- Epss percentile: 0.91106
- Assignee: [email protected]
- Published at: 2022-11-09T07:15:09Z
- Age in days: 1476
- Modified at: 2026-06-17T05:02:02Z
- Public exploits total: 1
- References total: 4
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-40797
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6 | nvd | 2022-11-09 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6 | Exploit, Third Party Advisory |
| http://packetstormsecurity.com/files/169964/Roxy-Fileman-1.4.6-Remote-Shell-Upload.html | Third Party Advisory, VDB Entry |
| https://gist.github.com/Hadi999/1f66fe7c5a217ca261ebfec36c630d18 | Third Party Advisory |
| https://web.archive.org/web/20210126213412/https://roxyfileman.com/download.php?f=1.4.6-php | Product |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| roxyfileman:roxy_fileman | = 1.4.6 | no | nvd | /v1/products/roxyfileman/roxy_fileman |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2022-11-09
- Remote: yes
- Exposed hosts: 128
- Checked, none or zero: known exploited, known exploited by, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports