PHP
CVE-2026-32756
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as user with upload permissions
-
DeliverySubmit file with invalid CSRF token
-
ExploitBypass extension validation logic
-
ExecutionUpload PHP script
-
ImpactExecute arbitrary code on server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File type validation, storage isolation
MITRE ATT&CK
2 techniques across 2 tactics: Command and Control, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Authenticated user account with Documents & Files module upload permissions required. Admidio's UploadHandlerFile.php must have the documented CSRF-extension validation interaction flaw where invalid CSRF tokens allow extension bypass. |
| Impact | This vulnerability presents a critical real-world risk with multiple concerning indicators: the CVSS 3.1 score of 8.8 reflects low attack complexity requiring only low privileges with no user interaction needed, while the detailed proof-of-concept with screenshots demonstrates practical exploitability. The attack vector is network-based (AV:N) with high impact to confidentiality, integrity, and availability. While not currently listed in CISA KEV, the combination of authenticated RCE capability, published exploitation instructions, and the widespread use of Admidio in organizations makes this a priority patch. The vulnerability is particularly concerning because it affects any authenticated user with upload permissions, not just administrators, significantly expanding the attack surface. |
| Exploit ScenarioDerived | An attacker with valid credentials and basic upload permissions logs into Admidio, navigates to the Documents & Files module, and intercepts the file upload request using a proxy tool like Burp Suite. By replacing the CSRF token with an invalid value and uploading a PHP webshell, the attacker bypasses extension validation and gains remote code execution on the server. The published proof-of-concept demonstrates this attack succeeding with minimal technical skill required, as the server responds with the uploaded file's URL despite reporting a CSRF error. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 17, 2026
A critical unrestricted file upload vulnerability in Admidio's Documents & Files module allows authenticated users with upload permissions to bypass file extension restrictions by submitting an invalid CSRF token, enabling upload of PHP scripts that lead to Remote Code Execution. The vulnerability affects Admidio versions prior to the patch and has a published proof-of-concept demonstrating webshell upload and command execution. With a CVSS score of 8.8 and detailed exploitation steps available, this represents a high-priority risk for organizations using Admidio for document management.
RemediationAI
Immediately update Admidio to the latest patched version available through the official GitHub repository or Composer package manager. Until patching is complete, consider temporarily disabling file upload functionality in the Documents & Files module or restricting upload permissions to only highly trusted administrators. Organizations should implement additional defense-in-depth measures including web application firewalls configured to block PHP file uploads, file upload directories configured with no-execute permissions, and monitoring for suspicious file uploads. Review the vendor advisory at https://github.com/Admidio/admidio/security/advisories/GHSA-95cq-p4w2-32w5 for specific patch details and additional guidance.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in Admidio (CPE: pkg:composer/admidio_admidio), an open-source membership management system written in PHP. The flaw stems from a design issue in the UploadHandlerFile.php class where CSRF token validation and file extension verification are improperly sequenced - files are written to disk before validation, and extension checks are skipped when any prior error (including CSRF failure) is present. This represents a classic CWE-434 (Unrestricted Upload of File with Dangerous Type) vulnerability where security controls can be bypassed through manipulation of the validation flow.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Summary
A critical unrestricted file upload vulnerability exists in the Documents & Files module of Admidio. Due to a design flaw in how CSRF token validation and file extension verification interact within UploadHandlerFile.php, an authenticated user with upload permissions can bypass file extension restrictions by intentionally submitting an invalid CSRF token. This allows the upload of arbitrary file types, including PHP scripts, which may lead to Remote Code Execution (RCE) on the server.
Details
1. Critical - Unrestricted File Upload leading to Remote Code Execution (RCE)
Root Cause Analysis:
The root cause lies in a design flaw in src/Infrastructure/Plugins/UploadHandlerFile.php. The UploadHandlerFile class overrides two methods from its parent UploadHandler class:
handle_form_data($file, $index)- Validates the CSRF token. On failure, it sets$file->errorand returns. The request is not terminated.handle_file_upload(...)- Callsparent::handle_file_upload()to physically write the file to disk, then checksif (!isset($file->error))before running file extension validation (allowedFileExtension()).
The execution flow differs based on whether the CSRF token is valid:
- Valid CSRF token:
handle_form_data()does not set an error → extension check runs → invalid extension causes the uploaded file to be deleted from disk. - Invalid CSRF token:
handle_form_data()sets$file->error→ theif (!isset($file->error))guard inhandle_file_upload()causes the extension validation to be skipped entirely → the cleanup code (FileSystemUtils::deleteFileIfExists()) is never reached → the file, already written to disk by the parent class, remains on the server and is directly accessible.
In summary, the file is always saved to disk by the parent class first. The extension check and cleanup only execute when no prior error exists. A deliberate CSRF token failure bypasses the extension filter while the file remains on disk.
Affected code (src/Infrastructure/Plugins/UploadHandlerFile.php):
// File is physically saved to disk here, before any Admidio-specific checks
$file = parent::handle_file_upload($uploaded_file, $name, $size, $type, $error, $index, $content_range);
if (!isset($file->error)) {
// Extension validation is only reached when no prior error is set.
// If CSRF validation failed in handle_form_data(), this block is skipped
// and the uploaded file is never cleaned up from disk.
if (!$newFile->allowedFileExtension()) {
throw new Exception('SYS_FILE_EXTENSION_INVALID');
}
}PoC
Documents & Files Create folder <img width="762" height="729" alt="image" src="https://github.com/user-attachments/assets/2c927482-851b-4945-93d6-6e7a1e3bc21f" />
<img width="749" height="690" alt="image" src="https://github.com/user-attachments/assets/72443c87-e15f-4312-9659-8cd0661a4dae" />
File Upload Try 1-1 (before request) <img width="1856" height="635" alt="image" src="https://github.com/user-attachments/assets/d1ffaa12-aec1-45ff-a612-885d9554fb60" />
File Upload Try 1-2 (after request) <img width="1850" height="855" alt="image" src="https://github.com/user-attachments/assets/4ece4aac-1255-4189-9048-45ff3df4abcf" />
File Upload Try 1-3 (After changing CSRF to a test value, request → PHP file upload succeeds) <img width="1847" height="928" alt="image" src="https://github.com/user-attachments/assets/63f9d108-5e4f-4d32-96d2-09f9ad910873" />
✅ rcepoc.php Upload Success! <img width="926" height="814" alt="image" src="https://github.com/user-attachments/assets/4de99c31-dc3c-44f2-9936-19c3da0dfffb" />
Access the rcepoc upload path confirmed in the response and check the web shell. <img width="1635" height="922" alt="image" src="https://github.com/user-attachments/assets/0b770caf-e737-4cbd-97b9-ae191a8b79f5" />
🆗 WebShell Success <img width="685" height="187" alt="image" src="https://github.com/user-attachments/assets/e90f162b-7949-41c4-9fd1-aad3b6365adf" />
<img width="794" height="209" alt="image" src="https://github.com/user-attachments/assets/f45dae74-a830-4761-af31-f2ac28eb2586" />
Steps to Reproduce:
- Log in to Admidio as an authenticated user with upload permissions on the Documents & Files module.
- Navigate to a folder in the Documents & Files module and open the file upload dialog.
- Intercept the upload POST request to
/system/file_upload.php?module=documents_files&mode=upload_files&uuid=<folder_uuid>using a proxy tool such as Burp Suite. - Replace the value of the
adm_csrf_tokenfield with an arbitrary invalid string (e.g.,webshellgogo). - Set the file to be uploaded to a PHP webshell (e.g.,
<?php system($_GET[1]); ?>). - Forward the modified request.
- Observe that the server responds with HTTP
200 OK. The JSON body contains"error":"Invalid or missing CSRF token!", yet the file is physically present on the server at the path indicated in theurlfield. - Access the uploaded PHP file directly via the URL provided in the response - arbitrary command execution is confirmed.
Impact
- An authenticated attacker with upload permissions can bypass file extension validation and upload arbitrary server-side scripts such as PHP webshells.
- This leads to Remote Code Execution (RCE), potentially resulting in full server compromise, sensitive data exfiltration, and lateral movement.
- While authentication is required, the attack is not limited to administrators - any member granted upload rights may exploit this vulnerability, making the attack surface broader than it may initially appear.
Remediation Measures
- The extension validation logic should be executed independently of the CSRF error state. It is recommended to move the extension check and the corresponding cleanup outside of the
if (!isset($file->error))block so that files with disallowed extensions are always removed from disk, regardless of other errors. - Rather than relying on a blacklist of dangerous extensions (e.g.,
.php,.phar,.phtml), it is strongly recommended to implement a whitelist of permitted extensions appropriate to a documents module (e.g.,.pdf,.docx,.xlsx,.pptx,.txt). - CSRF token validation should either be performed before the file is written to disk, or a validation failure should result in immediate request termination rather than merely setting an error flag on the file object.
Executive ViewAI
CVE-2026-32756 presents significant security risk, a unrestricted file upload vulnerability rated CVSS 8.8. This could allow attackers to access or modify files outside intended directories, potentially exposing sensitive configuration or credentials. Organizations should apply vendor updates when available and consider compensating controls in the interim.
Apply vendor patch. If immediate patching is not feasible: (1) Restrict file upload functionality via WAF; (2) Implement allowlist-based file type validation; (3) Use chroot/containerization to limit filesystem access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Malicious file upload attacks exploit insufficient validation when web applications accept user-provided files.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)GitHub Advisory
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-95cq-p4w2-32w5
NVD
CVE.org
EPSS
VulDB
Exploit-DB