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

High severity, published 2026-08-31. Update studio-42/elfinder to 2.1.70 or later: composer update studio-42/elfinder.

Canonical URL: https://buzzphp.com/security/ghsa-8x3q-jpjh-qh5c · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.6) |
| Published | 2026-08-31 |
| Updated | 2026-08-31 |
| CVE | [CVE-2026-81889](https://nvd.nist.gov/vuln/detail/CVE-2026-81889) |
| GHSA | [GHSA-8x3q-jpjh-qh5c](https://github.com/advisories/GHSA-8x3q-jpjh-qh5c) |
| Weakness | CWE-918 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| studio-42/elfinder | <= 2.1.69 | 2.1.70 |

## What to do

Update studio-42/elfinder to 2.1.70 or later: composer update studio-42/elfinder.

Check which version you run with `composer show studio-42/elfinder`, and every affected package with `composer audit`.

## About this advisory

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.



## Links

- [GHSA-8x3q-jpjh-qh5c on GitHub](https://github.com/advisories/GHSA-8x3q-jpjh-qh5c)
- [CVE-2026-81889 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-81889)
- [All Composer security advisories](https://buzzphp.com/security)
