Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim authenticates to elFinder instance
-
DeliveryAttacker crafts page with auto-submitting netmount CSRF payload
-
ExploitVictim visits attacker-controlled page
-
ExecutionBrowser sends netmount request with attacker's FTP parameters and victim's session cookie
-
PersistCSRF check skipped; PHP server connects outbound to attacker-controlled FTP host
-
ImpactMalicious FTP mount persisted in victim's session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim must have an active authenticated session to an elFinder instance and must visit a page under the attacker's control while that session is live - the standard CSRF precondition. The elFinder deployment must use the default connector.minimal.php-dist configuration with FTP network mounts enabled; if FTP mounts have been explicitly disabled or the connector is customized to exclude elFinderVolumeFTP, the SSRF component is not reachable. Exploitation is limited to pre-2.1.70 versions; the attacker requires no account or privileges on the elFinder instance itself. Deployments that have removed netmount support entirely from their connector are not exploitable via this path. |
| Impact | The CVSS 5.4 Medium score reflects the CSRF pattern accurately: network-reachable, low complexity, no attacker privileges, but gated on victim interaction and delivering only partial impact. The real-world risk is moderately elevated beyond what the raw score conveys, for two reasons. First, the unauthorized FTP mount persists in the victim's PHP session, meaning subsequent file-manager operations by the victim can traverse the attacker-controlled mount point. Second, the server-side FTP connection to an attacker-chosen host and port constitutes an SSRF primitive - the PHP server probes internal or external endpoints on the attacker's behalf, potentially exposing internal network topology or bypassing perimeter controls. No EPSS data was supplied, so exploitation probability cannot be quantified; the vulnerability is not in CISA KEV, confirming no known active exploitation at time of analysis. Deployments that have disabled FTP mounts in their connector configuration are not exposed to the SSRF component, which significantly reduces risk for those environments. |
| Exploit ScenarioDerived | An attacker hosts a web page containing an auto-submitting form or fetch() call targeting the victim's elFinder connector with a netmount command specifying an attacker-controlled FTP server (e.g., ftp://attacker.example:2121). When an authenticated elFinder user visits the page, their browser sends the request with valid session cookies but no CSRF token, which the server accepts; the PHP process then initiates an FTP connection to the attacker's host, and the malicious mount is persisted in the victim's session for further file-system manipulation. No public proof-of-concept exploit has been identified, but the attack is straightforward to implement given the public advisory and commit diff. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 31, 2026
CSRF protection is absent for the netmount command in elFinder prior to 2.1.70, allowing a cross-site request from an attacker-controlled page to mount an attacker-chosen FTP server into an authenticated victim's session without a valid X-elFinder-CSRF token. Because the default connector.minimal.php-dist configuration enables FTP mounts and passes fully attacker-controlled parameters - host, port, credentials, path - directly to elFinderVolumeFTP, this also creates a server-side request forgery primitive: the PHP process itself initiates a TCP connection to the attacker-specified host and port. A vendor-confirmed patch is available in version 2.1.70; no public exploit has been identified at time of analysis.
RemediationAI
Upgrade to elFinder 2.1.70 or later, available at https://github.com/Studio-42/elFinder/releases/tag/2.1.70; this release enforces CSRF token validation on the netmount command by adding it to $csrfProtectedCmds, directly eliminating the vulnerability. For deployments that cannot immediately upgrade, disable FTP network mount support in the connector configuration by removing FTP from the list of permitted volume drivers - this removes the SSRF and credential-relay attack surface, though the underlying CSRF gap in netmount persists for any remaining enabled network mount driver until the patch is applied. As a secondary compensating control, restrict access to the elFinder connector endpoint at the web server or WAF layer to known-authenticated, same-origin sessions only; note this provides weaker protection than patching and may impact legitimate use cases if elFinder is accessed cross-origin.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
elFinder (cpe:2.3:a:studio-42:elfinder) is an open-source PHP/JavaScript file manager. The root cause is CWE-352 (Cross-Site Request Forgery): the static array elFinderConnector::$csrfProtectedCmds in php/elFinderConnector.class.php enumerates which commands require a valid CSRF token before execution. The netmount command - which mounts external file systems including FTP - was missing from this array, so validateCsrfToken() was never invoked for it. The shipped connector.minimal.php-dist enables FTP by default; parameters including protocol, host, port, user, pass, path, alias, and options flow without sanitization from the HTTP request body through elFinder::netmount() in php/elFinder.class.php into php/elFinderVolumeFTP.class.php, where the PHP FTP extension opens the outbound connection. The fix (commit 31284facd033e081b2b69c08873b39c8a413b762) adds 'netmount' => true to $csrfProtectedCmds, and a second commit (36d40fff) addresses related hardening.
Know when Elfinder 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:N/UI:R/S:U/C:L/I:L/A:N
CSRF requires victim to visit attacker's page (UI:R); attacker needs no account (PR:N); C:L for server-side connection telemetry leakage, I:L for unauthorized persistent mount.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.70, the netmount command is omitted from elFinderConnector::$csrfProtectedCmds in php/elFinderConnector.class.php, so validateCsrfToken() is not called for this state-changing operation. In the shipped php/connector.minimal.php-dist configuration, FTP network mounts are enabled by default, and attacker-controlled protocol, host, path, port, user, pass, alias, and options arguments flow through elFinder::netmount() in php/elFinder.class.php to php/elFinderVolumeFTP.class.php. A cross-site request can therefore persist an attacker-chosen FTP mount in the victim's session, cause the PHP server to connect to an attacker-chosen FTP host and port, and send supplied credentials without an X-elFinder-CSRF token. This issue is fixed in version 2.1.70.
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.
elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Rated critical severity (CVSS 9.
elFinder before 2.1.48 has a command injection vulnerability in the PHP connector. Rated critical severity (CVSS 9.8), t
In Studio-42 elFinder 2.1.60, there is a vulnerability that causes remote code execution through file name bypass for fi
The package studio-42/elfinder before 2.1.58 are vulnerable to Remote Code Execution (RCE) via execution of PHP code in
connector.minimal.php in std42 elFinder through 2.1.60 is affected by path traversal. Rated critical severity (CVSS 9.1)
SSRF protection bypass in elFinder's URL upload feature allows remote attackers to reach internal HTTP services by explo
Remote code execution in elFinder prior to 2.1.70 allows an authenticated user with ZIP upload permission to bypass the
_joinPath in elFinderVolumeLocalFileSystem.class.php in elFinder before 2.1.62 allows path traversal in the PHP LocalVol
Studio 42 elFinder 2.1.64 is vulnerable to Incorrect Access Control. Rated critical severity (CVSS 9.8), this vulnerabil
Studio 42 elFinder before 2.1.37 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function
Studio 42 elFinder before 2.1.36 has a directory traversal vulnerability in elFinder.class.php with the zipdl() function
Command injection in elFinder before 2.1.67 lets attackers reach OS command execution as the web server user through the
EUVD-2026-68772
GHSA-9hjf-w35w-6vx2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB