Skip to main content
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Command Injection in Roundcube rcube_image.php

IdentifiersCVE-2020-12641CWE-78· Improper Neutralization of Special…

CVE-2020-12641 is a command injection vulnerability in Roundcube Webmail before version 1.4.4. The flaw is in rcube_image.php and arises from unsafe handling of shell metacharacters in configuration values for im_convert_path or im_identify_path. If an attacker can influence these configuration settings, shell commands can be injected into the external ImageMagick invocation path, resulting in arbitrary command execution on the server.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary code execution in the context of the web server or Roundcube application user. This can enable full compromise of the Roundcube instance, access to stored or processed email data, mailbox theft, server-side persistence, and use of the host as a pivot for further intrusion. Supporting reporting also indicates the vulnerability has been exploited by APT28 to execute shell commands and access or exfiltrate email data.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable or avoid use of the affected external image-processing configuration paths where feasible, and ensure im_convert_path and im_identify_path are hardcoded to trusted absolute paths with no shell expansion characters. Restrict administrative/configuration access, monitor for unexpected process execution from the webmail environment, and apply host-level controls such as least-privilege execution and command execution monitoring to reduce exploitation impact.

Remediation

Patch, then assume compromise.

Upgrade Roundcube Webmail to version 1.4.4 or later, where this issue is fixed. Review and correct the im_convert_path and im_identify_path configuration values to ensure they reference only legitimate executable paths and do not contain shell metacharacters or attacker-controlled content. Validate that no unsafe local customizations reintroduce shell invocation risks.
PUBLIC EXPLOITS

Exploits

No public exploits tracked yet. Mallory keeps watching.

VALID 0 / 0 TOTALView more in app

No public exploit code observed for this vulnerability.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
OpensuseBackports Sleapplication
OpensuseLeapoperating_system
RoundcubeWebmailapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence1

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity3

Community discussion across Reddit, Mastodon, and other social sources.