CVE-2021-32682 Multiple vulnerabilities leading to RCE

Critical 9.8 Published Updated

Attackers can execute arbitrary code and commands on the server hosting the elFinder PHP connector, even with minimal configuration.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-32682?

CVE-2021-32682 is a critical command injection vulnerability in Studio-42 elFinder, published on 14 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-918, CWE-78, CWE-22

Which versions are affected by CVE-2021-32682?

2 open source packages ship an affected version, including studio-42/elfinder. It affects 1 product.

PackageAffectedFixed in
studio-42/elfinder PackagistAll versions2.1.59
studio-42/elfinder PackagistAll versions2.1.59

Products include Std42 Elfinder.

How do I fix CVE-2021-32682?

Upgrade studio-42/elfinder to 2.1.59 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-32682 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-32682 exists.

Public exploit code: 1 Metasploit module and 1 Nuclei template.

Sources

Also known as GHSA-wph3-44rj-92pr.

Is CVE-2021-32682 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free