Skip to main content
← All vulnerabilities
CVE-2026-81889GHSA-8X3Q-JPJH-QH5C

elFinder: SSRF protection bypass via DNS rebinding in the `fsock_get_contents()` fallback

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.1.70
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Prior to 2.1.70, elFinder URL uploads in php/elFinder.class.php can bypass server-side request forgery protections when PHP cURL is unavailable because validate_address() validates $info['ip'], but get_remote_contents() selects fsock_get_contents(), which connects to $arr['host'] and performs a second DNS resolution. An attacker able to submit a URL upload can use DNS rebinding to have the first resolution return a public address and the connection resolution return a loopback or private address, causing the internal HTTP response body to be stored as an uploaded file and made readable through elFinder. After a successful fetch, get_headers($url, true) separately requests the original hostname without reusing the validated and pinned connection, creating an additional blind server-side request forgery path even when curl_get_contents() is selected. This issue is fixed in version 2.1.70.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Studio-42 elFinder

    fixed in 2.1.70

  • studio-42/elfinderPackagist

    fixed in 2.1.70

References 4

GitHub · Studio-42/elFinder