CVE-2021-32682 in std42 elfinder

LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.

What the vulnerability is

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.

Affected software: std42 elfinder

Scores

What LogPulse has for it

How to mitigate it

Upgrade elFinder to 2.1.59 or later

Patch or upgrade. elFinder 2.1.59 escapes file names and options in the archive, extract and resize commands, which closes the command injection and traversal flaws in the PHP connector (CVE-2021-32682).

Applies to: elFinder 2.1.58 and earlier.

  1. Find applications that ship elFinder (php/connector*.php, or studio-42/elfinder in composer.lock).
  2. Update elFinder to 2.1.59 or a later release, including copies bundled in CMS plugins.
  3. Put the connector behind the application's login; never expose connector.minimal.php without authentication.
  4. Rerun the vulnerability scan and confirm CVE-2021-32682 is no longer reported.

Sources:

Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.

We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.

Start free with LogPulse