CVE-2022-40797: Malicious File Upload

Published Nov 9, 2022
·
Updated

Roxy Fileman 1.4.6 allows Remote Code Execution via a .phar upload, because the default FORBIDDENUPLOADS 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.)

Affected Software

1 affected component
Roxyfileman Roxy Fileman=1.4.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Roxy Fileman to a version that resolves this vulnerability.

    Fixed in 1.4.6
  2. Configuration

    In conf.json, update FORBIDDEN_UPLOADS so it also blocks .phar uploads (current default only blocks .php, .php4, and .php5).

    Roxy Fileman conf.json FORBIDDEN_UPLOADS = .php,.php4,.php5,.phar

Event History

Nov 9, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·07:15 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-40797?

CVE-2022-40797 has a critical severity rating as it allows remote code execution due to improper file upload restrictions.

2

How do I fix CVE-2022-40797?

To mitigate CVE-2022-40797, configure the FORBIDDEN_UPLOADS setting in conf.json to block .phar file uploads.

3

What are the potential impacts of CVE-2022-40797?

The potential impacts of CVE-2022-40797 include unauthorized remote code execution, which could lead to complete system compromise.

4

Which version of Roxy Fileman is affected by CVE-2022-40797?

Roxy Fileman version 1.4.6 is affected by CVE-2022-40797.

5

Is CVE-2022-40797 specific to any web server configuration?

Yes, CVE-2022-40797 is particularly relevant in web server configurations that invoke the PHP interpreter for .phar files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203