BuzzPHP
LightDarkSystem

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

High severity. Published 31 August 2026. Update studio-42/elfinder to 2.1.70 or later: composer update studio-42/elfinder.

Which versions are affected?

PackageAffected versionsFixed in
studio-42/elfinder (opens in a new tab)<= 2.1.692.1.70

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show studio-42/elfinder
composer audit

Advisory details

SeverityHighCVSS 8.6
Published
Updated
CVECVE-2026-81889 (opens in a new tab)
GHSAGHSA-8x3q-jpjh-qh5c (opens in a new tab)
WeaknessCWE-918

What the advisory says

poc.zip Summary

elFinder 2.1.69 is vulnerable to a Server-Side Request Forgery (SSRF) protection bypass when PHP cURL is unavailable and URL uploads use the fsockgetcontents() fallback.

An attacker who can submit a URL for server-side upload can use an attacker-controlled DNS hostname that initially resolves to an allowed public IP address and subsequently resolves to a loopback or private IP address.

The URL validation checks the first resolved IP, but fsockgetcontents() opens the actual connection using the original hostname. This causes a second DNS resolution and allows the connection to reach an address different from the one that was validated.

Source: GHSA-8x3q-jpjh-qh5c (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories