CVE DatabaseCVE-2020-13965
한국어 권고문 →
CVE-2020-139656.1/MEDIUMCISA KEVCWE-79CWE-80

Roundcube Webmail Cross-Site Scripting (XSS) via Malicious XML Attachment (CVE-2020-13965)

⚡ Jump to Patch
Affected Vendors
roundcube
Affected Components
roundcube_webmail
Published Date
2020-06-09
CVSS v3.1
6.1
MEDIUM
EPSS (30d)
76.6%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

Roundcube Webmail versions before 1.3.12 and 1.4.x before 1.4.5

Impact

Attackers can execute arbitrary JavaScript in the victim's browser session via a malicious XML attachment preview, leading to session hijacking

Mitigation

Immediately upgrade Roundcube Webmail to patched versions 1.3.12, 1.4.5, or later

Affected Products & Version Scope

Roundcube Webmail versions prior to 1.3.12 and 1.4.x versions prior to 1.4.5

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

The recommended remediation is to upgrade Roundcube Webmail to the latest secure release (1.3.12, 1.4.5, or newer). Use the following commands to perform the upgrade:

bash
# Navigate to the Roundcube installation directory
cd /var/www/roundcube

# Download the secure release package
wget https://github.com/roundcube/roundcubemail/releases/download/1.4.5/roundcubemail-1.4.5-complete.tar.gz
tar -zxvf roundcubemail-1.4.5-complete.tar.gz

# Run the official upgrade installer script
cd roundcubemail-1.4.5
./bin/installto.sh /var/www/roundcube

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, mitigate the risk by disabling inline previews for XML files in the configuration file (config/config.inc.php).

php
// Edit config/config.inc.php
// Ensure 'text/xml' and 'application/xml' are excluded from inline preview allowed mime-types
$config['mime_types'] = array(
    'text/html' => 'html',
    // Ensure XML mappings are removed or forced to download
);

3. Log Audit & IoC Verification Commands

Search web server access logs for potential exploitation attempts where users were tricked into previewing XML attachments.

bash
# Search access logs for XML attachment preview requests
grep -Ei 'action=get.*mime_id.*\.xml' /var/log/nginx/access.log /var/log/apache2/access.log 2>/dev/null

# Verify the currently running Roundcube version
grep 'RCMAIL_VERSION' /var/www/roundcube/program/include/iniset.php 2>/dev/null
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
Cloudflare Enterprise & Pro WAF
Due to active exploitation risks (CISA KEV), immediately upgrade your Roundcube Webmail instances to version 1.3.12 or 1.4.5+.

Block Exploits Instantly with Managed Virtual Patching Rules

Can't patch production immediately? Deploy managed WAF rules at the edge to intercept RCE, SQLi, and deserialization payloads before they hit your origin server.

3-min setup · Automated Zero-Day Managed Rules
Practice Exploiting & Patching This Web Vulnerability in an Interactive Lab
Launch Hands-On Security Lab

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2020-13965) is a stored/reflected Cross-Site Scripting (XSS) flaw in Roundcube Webmail. The root cause lies in how the application handles email attachment previews. Roundcube included 'text/xml' in its list of allowed mime-types for inline previewing without properly sanitizing or sandboxing active content (such as JavaScript or SVG scripts embedded within XML CDATA sections).

2. Exploitation Mechanics & Attack Scenario

An attacker sends an email containing a specially crafted XML attachment to the target user. When the user clicks the 'Preview' button for the XML attachment within the Roundcube web interface, the server serves the file with a 'Content-Type: text/xml' header. The browser renders the XML document and executes any embedded malicious scripts within the context of the Roundcube application session, allowing the attacker to steal session tokens or perform unauthorized actions.

3. Infrastructure & Business Impact

As this vulnerability is listed in the CISA KEV (Known Exploited Vulnerabilities) catalog, it has been actively exploited in the wild. Successful exploitation allows attackers to compromise user mailboxes, exfiltrate sensitive corporate communications, and potentially pivot to launch secondary phishing campaigns impersonating legitimate internal users.

Official Vendor Advisories & References

Frequently Asked SecOps Questions (CVE-2020-13965)

FAQ

Q1. How critical is CVE-2020-13965 and is it actively exploited in the wild?

CVE-2020-13965 is rated CVSS 6.1 (MEDIUM) with a 30-day EPSS exploitation probability of 76.6%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2020-13965?

Primary impacted vendors include roundcube across roundcube_webmail. Scope summary: Roundcube Webmail versions prior to 1.3.12 and 1.4.x versions prior to 1.4.5

Q3. What temporary mitigations or workarounds exist for CVE-2020-13965 before patching?

[Mitigation] Immediately upgrade Roundcube Webmail to patched versions 1.3.12, 1.4.5, or later Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2020-13965

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (roundcube)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2020-13965 Roundcube Webmail Cross-Site Scripting (XSS) via Malicious XML Attachment (CVE-2020-13965) (CVSS 6.1) - Patch & Workaround | CVE Pulse