CVE-2020-12641: Roundcube Webmail Remote Code Execution
Roundcube Webmail · listed in the CISA catalog of actively exploited vulnerabilities since 2023-06-22.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 84%
- higher than 99.7% of all CVEs
- Added to CISA KEV
- 2023-06-22
- US federal due date 2023-07-13
- Ubuntu priority
- high
CVE-2020-12641 explained
CVE-2020-12641 is a remote code execution flaw in rcube_image.php in Roundcube Webmail before 1.4.4. Shell metacharacters in the im_convert_path or im_identify_path configuration settings can lead to execution of arbitrary code. CISA lists it as known to be exploited, so unpatched webmail servers face real risk.
Impact
Successful exploitation lets an attacker execute arbitrary code on the server running Roundcube Webmail. According to the CVSS vector, the attack works over the network with low complexity, needs no privileges and no user interaction. Confidentiality, integrity and availability impacts are all high. This could expose mail data, allow tampering with the server and disrupt service.
Who is affected
The roundcube source package is affected on Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 20.04 LTS. Fixed versions exist for all three, but only through Ubuntu Pro (ESM): 1.2~beta+dfsg.1-0ubuntu1+esm2 for 16.04, 1.3.6+dfsg.1-1ubuntu0.1~esm2 for 18.04 and 1.4.3+dfsg.1-1ubuntu0.1~esm1 for 20.04. Ubuntu 16.04 LTS is end of life. Standard support for 18.04 and 20.04 has ended.
Written with AI from the data on this page and checked against it automatically.
Official description
rcube_image.php in Roundcube Webmail before 1.4.4 allows attackers to execute arbitrary code via shell metacharacters in a configuration setting for im_convert_path or im_identify_path.
CISA required action: Apply updates per vendor instructions.
CISA notes
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 20.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.4.3+dfsg.1-1ubuntu0.1~esm1
Ubuntu 18.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.3.6+dfsg.1-1ubuntu0.1~esm2
Ubuntu 16.04 LTS·roundcube
fix via Ubuntu Pro
Fixed: 1.2~beta+dfsg.1-0ubuntu1+esm2
What to do
- Identify all hosts running the
roundcubepackage and check the installed version. - On Ubuntu 18.04 LTS and 20.04 LTS, enable Ubuntu Pro (ESM) and update
roundcubeto the fixed version. - On Ubuntu 16.04 LTS, apply the ESM fix if you have Ubuntu Pro, and plan an upgrade to a supported release.
- Restart the web server or PHP service so the updated code is loaded.
- Review the im_convert_path and im_identify_path settings for unexpected values.
- Limit network exposure of the webmail interface where possible.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Run on each Ubuntu or Debian server. Replace roundcube with the source package from the table above.
1. Show installed packages built from the source package, with their versions
dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="roundcube"'2. Compare each installed version with the fixed version for your release from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the fix
sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="roundcube"{print $1}')Services keep running the old code until they are restarted – restart the affected service or check with needrestart.
Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Questions about CVE-2020-12641
- Is this vulnerability being exploited?
- Yes. CISA added CVE-2020-12641 to its Known Exploited Vulnerabilities catalog on 2023-06-22, with a US federal due date of 2023-07-13. Whether it is used in ransomware campaigns is listed as unknown.
- Do I need Ubuntu Pro to get the fix?
- Yes. On Ubuntu 16.04 LTS, 18.04 LTS and 20.04 LTS, the fixed
roundcubepackages are only available through Ubuntu Pro (ESM). - Which upstream version fixes the issue?
- The description states that Roundcube Webmail versions before 1.4.4 are affected. Ubuntu ships patched packages for its releases rather than that exact upstream version.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
Other advisories
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.