Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-103541 Overview
CVE-2026-103541 is an unrestricted file upload vulnerability affecting formtools.org Form Tools versions up to 3.1.1. The flaw resides in the Files::uploadFile function within global/code/actions.php, which is reachable through the Ajax Handler component. An authenticated remote attacker can abuse the weakness to upload arbitrary files to the server. The exploit details have been published, and the maintainers have not yet responded to the issue report filed against the project.
Critical Impact
Authenticated remote attackers can upload arbitrary files through the Form Tools Ajax Handler, potentially enabling webshell deployment and further compromise of the hosting environment.
Affected Products
- Form Tools (formtools.org) versions up to and including 3.1.1
- Component: Ajax Handler (global/code/actions.php)
- Function: Files::uploadFile
Discovery Timeline
- 2026-10-01 - CVE-2026-103541 published to the National Vulnerability Database (NVD)
- 2026-10-01 - Last updated in NVD database
Technical Details for CVE-2026-103541
Vulnerability Analysis
The vulnerability is categorized under [CWE-284: Improper Access Control] and manifests as an unrestricted file upload. The Files::uploadFile function in global/code/actions.php accepts uploaded files through the Ajax Handler without sufficient restrictions on file type, extension, or content validation. An attacker with low-privileged authenticated access can submit a crafted multipart request to the Ajax endpoint and place attacker-controlled files into a server-reachable location.
Because Form Tools is a PHP application, uploaded files that land within the web root or are later included by the application can execute as server-side code. This creates a path from a limited application account toward arbitrary code execution in the hosting environment. The weakness is remotely exploitable over the network and does not require user interaction.
Root Cause
The root cause is missing or insufficient validation of uploaded files in Files::uploadFile. The function does not adequately restrict the file types permitted through the Ajax Handler path, allowing content outside the expected allow list to be written to disk. Detailed analysis is referenced in the GitHub CVE Report and tracked in GitHub Issue #957.
Attack Vector
An attacker authenticates with low-privilege credentials to the Form Tools application. They then issue a crafted HTTP POST request to the Ajax Handler endpoint that invokes Files::uploadFile with an attacker-chosen file. If the uploaded file is stored in a location served by the web server, the attacker requests the file URL to trigger execution. Public exploit details are catalogued in the VulDB entry for CVE-2026-103541.
No verified proof-of-concept code is reproduced here. Refer to the external references for technical specifics.
Stop Remote Code Execution Before It Runs
Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.
Stop Exploit AttemptsDetection Methods for CVE-2026-103541
Indicators of Compromise
- Unexpected files (particularly .php, .phtml, .phar, or .htaccess) appearing in Form Tools upload directories or anywhere under the web root.
- POST requests to Ajax endpoints that invoke the uploadFile action with uncommon MIME types or double extensions such as shell.php.jpg.
- Outbound connections or new child processes originating from the PHP worker (php-fpm, apache2, httpd) shortly after an upload request.
Detection Strategies
- Review web server access logs for POST requests to the Form Tools Ajax Handler followed by GET requests to newly created files in upload directories.
- Monitor file-system events in Form Tools upload paths for creation of executable script content, cross-referenced with the originating authenticated user session.
- Compare installed Form Tools versions against the vulnerable range (≤ 3.1.1) during routine vulnerability scans.
Monitoring Recommendations
- Enable file-integrity monitoring on global/code/ and all configured upload directories.
- Alert on PHP interpreter spawning shell processes such as sh, bash, cmd.exe, or powershell.exe.
- Capture and retain web server and PHP error logs with sufficient granularity to reconstruct upload-to-execution sequences.
How to Mitigate CVE-2026-103541
Immediate Actions Required
- Restrict network access to Form Tools administrative and Ajax endpoints to trusted IP ranges until a patched release is available.
- Review and rotate credentials for all Form Tools accounts, especially those with upload privileges, to limit the pool of accounts that could exploit the issue.
- Audit upload directories for unexpected files and remove any unauthorized content.
Patch Information
No vendor patch is available at the time of publication. The project was notified through GitHub Issue #957 but has not yet responded. Track the upstream repository and the VulDB Vulnerability #412351 entry for update status.
Workarounds
- Configure the web server to deny execution of script files (.php, .phtml, .phar) within Form Tools upload directories, for example via Apache php_flag engine off or Nginx location blocks.
- Place Form Tools behind an authenticated reverse proxy or VPN to reduce exposure of the Ajax Handler to untrusted networks.
- Deploy a Web Application Firewall rule that inspects multipart uploads to the Ajax Handler and blocks executable content types and dangerous extensions.
# Nginx example: prevent script execution in Form Tools upload directories
location ~* ^/upload/.*\.(php|phtml|phar|phps)$ {
deny all;
return 403;
}
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

