VYPR
Unrated severityNVD Advisory· Published Oct 3, 2022· Updated Aug 3, 2024

CVE-2022-40721

CVE-2022-40721

Description

Arbitrary file upload vulnerability in php uploader

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

PHP File Uploader by CreativeDream allows unauthenticated arbitrary file upload to web root, enabling remote code execution.

Vulnerability

The php-uploader library by CreativeDream allows unauthenticated arbitrary file upload to the web root directory. The vulnerability resides in the examples/upload.php script, which does not validate file type or restrict upload paths. Any file, including executable scripts such as .php files, can be uploaded. No specific version is mentioned in the available references, but the codebase is hosted at [1][2][3].

Exploitation

An attacker can send a crafted HTTP POST request to the examples/upload.php endpoint using multipart/form-data. The exploit is demonstrated via a simple curl command: curl -vk http://localhost/php-uploader/examples/upload.php -F "files=@shell.php". No authentication is required, and the attacker only needs network access to the vulnerable endpoint. The uploaded file is placed directly into the web root, making it immediately accessible via a browser [1][3].

Impact

Successful exploitation allows an attacker to execute arbitrary PHP code on the server by accessing the uploaded shell script, leading to full remote code execution (RCE) with the privileges of the web server. This results in complete compromise of confidentiality, integrity, and availability of the affected system.

Mitigation

As of the advisory date (2022-09-08) and the publication date (2022-10-03), no official patch or fixed version has been released. The vendor was notified in 2020 but no response is indicated. Immediate workarounds include removing or restricting access to the examples/upload.php file, implementing server-side file type validation, and moving the upload directory outside the web root. Users should monitor the GitHub repository for future updates [1][2][3].

AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.