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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | roundcube | 1.4.4+dfsg.1-1 | — |
| Debian 13 | roundcube | 1.4.4+dfsg.1-1 | — |
| Debian 12 | roundcube | 1.4.4+dfsg.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 22.04 LTS | roundcube | 1.5.0+dfsg.1-2ubuntu0.1~esm1 | USN-5182-1 |
| Ubuntu Pro 20.04 LTS | roundcube | 1.4.3+dfsg.1-1ubuntu0.1~esm1 | USN-5182-1 |
| Ubuntu Pro 18.04 LTS | roundcube | 1.3.6+dfsg.1-1ubuntu0.1~esm2 | USN-5182-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | roundcube | 1.2~beta+dfsg.1-0ubuntu1+esm2 | USN-5182-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP4 | roundcubemail | 1.5.3-bp154.2.3.1 | openSUSE-SU-2022:10148-1 |
| SUSE Package Hub 15 SP3 | roundcubemail | 1.5.3-bp154.2.3.1 | openSUSE-SU-2022:10148-1 |
| SUSE Package Hub 15 SP2 | roundcubemail | 1.3.15-bp152.4.3.1 | openSUSE-SU-2020:1516-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | roundcubemail | 1.3.15-bp152.4.3.1 | openSUSE-SU-2020:1516-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | roundcubemail | 1.4.11-1.3 | openSUSE-SU-2024:11303-1 |
| openSUSE Leap 15.4 | roundcubemail | 1.5.3-bp154.2.3.1 | openSUSE-SU-2022:10148-1 |
| openSUSE Leap 15.3 | roundcubemail | 1.5.3-bp154.2.3.1 | openSUSE-SU-2022:10148-1 |
| openSUSE Leap 15.2 | roundcubemail | 1.3.15-bp152.4.3.1 | openSUSE-SU-2020:1516-1 |
| openSUSE Leap 15.1 | roundcubemail | 1.3.15-bp152.4.3.1 | openSUSE-SU-2020:1516-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 2 repositories
-
mbadanoiu/MAL-004 ★ 0 · Apr 13, 2024
MAL-004: Command Injection Bypass for CVE-2020-12641 in Roundcube Webmail
-
mbadanoiu/CVE-2020-12641 ★ 0 · Apr 8, 2024
CVE-2020-12641: Command Injection via “_im_convert_path” Parameter in Roundcube Webmail
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Roundcube Webmail - Command Injection http/cves/2020/CVE-2020-12641.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 4
- USN-5182-1 roundcube vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- openSUSE-SU-2020:1516-1 Security update for roundcubemail SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10148-1 Security update for roundcubemail SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11303-1 roundcubemail-1.4.11-1.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/roundcube/roundcubemail/releases/tag/1.4.4
- https://github.com/roundcube/roundcubemail/compare/1.4.3...1.4.4
- https://roundcube.net/news/2020/04/29/security-updates-1.4.4-1.3.11-and-1.2.10
- https://github.com/roundcube/roundcubemail/commit/fcfb099477f353373c34c8a65c9035b06b364db3
- https://github.com/DrunkenShells/Disclosures/tree/master/CVE-2020-12641-Command%20Injection-Roundcube
- GLSA-202007-41 vendor-advisory
- openSUSE-SU-2020:1516 vendor-advisory