Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2019-3396: Server-side template injection and RCE in Atlassian Confluence Widget Connector

Published Mar 25, 2019 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Atlassian
IdentifiersCVE-2019-3396CWE-1336

CVE-2019-3396 is a server-side template injection vulnerability in the Widget Connector macro of Atlassian Confluence Server and Data Center that allows remote attackers to achieve path traversal and remote code execution. Affected releases include versions before 6.6.12, versions from 6.7.0 before 6.12.3, versions from 6.13.0 before 6.13.3, and versions from 6.14.0 before 6.14.2. The vulnerability has been exploited to deploy ransomware, cryptocurrency miners, rootkits, and botnet malware.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

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

Successful exploitation permits path traversal and remote execution of attacker-controlled code on the Confluence instance. Observed attacks installed GandCrab ransomware, cryptocurrency-mining malware with a concealment rootkit, and botnet payloads. Compromised systems have subsequently been used for cryptocurrency mining and distributed denial-of-service attacks.

Mitigation

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

Monitor affected hosts for suspicious processes, files, and network connections associated with exploitation and follow-on malware. If remediation cannot be performed immediately, investigate for indicators of compromise and initiate incident response and recovery when compromise is identified. No vulnerability-specific preventive workaround is established here.

Remediation

Patch, then assume compromise.

Upgrade to a supported, patched Confluence release. Historical fixes were released in 6.6.12, 6.12.3, 6.13.3, and 6.14.2 for their respective release branches. Older installations must migrate to a fixed release rather than remain on an affected branch. Previously exposed, unpatched instances should also be investigated for compromise; patching alone does not remove deployed malware.

Public exploits

Exploits

4 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
confluence_widget_connector.rbThis repository contains a single Metasploit module (confluence_widget_connector.rb) that exploits CVE-2019-3396, a server-side template injection (SSTI) vulnerability in the Atlassian Confluence Widget Connector macro. The exploit allows unauthenticated remote code execution on vulnerable Confluence Server and Data Center instances by abusing the '_template' parameter to inject and execute arbitrary Java code via a malicious Velocity template. The module supports multiple payloads (Java, Windows, Linux) and leverages a built-in FTP server to deliver the malicious template to the target. The attacker can achieve a Meterpreter session or execute arbitrary commands on the target system. The module is weaponized, highly configurable, and suitable for both proof-of-concept and real-world exploitation. The main attack vector is network-based, targeting the Confluence HTTP service (default port 8090), and the exploit requires the attacker to run an FTP server (default port 8021) to serve the payload. The code is well-structured, leverages Metasploit's libraries, and provides cleanup routines for artifacts left on disk.Disclosed Mar 25, 2019 · Framework: metasploit · ruby · networkWeaponizedCVE-2019-3396_EXPThis repository provides a working exploit for CVE-2019-3396, a server-side template injection (SSTI) vulnerability in Atlassian Confluence's /rest/tinymce/1/macro/preview endpoint. The main exploit script (RCE_exp.py) is written in Python and allows an attacker to execute arbitrary system commands on a vulnerable Confluence server. The exploit works by instructing the target server to fetch and process a malicious Velocity template (cmd.vm) hosted by the attacker via FTP or HTTPS. The cmd.vm file contains Velocity code that executes arbitrary commands passed via the HTTP request. The repository includes: - RCE_exp.py: The main exploit script, which can read files or execute commands on the target. - cmd.vm: The malicious Velocity template used to trigger command execution. - README.md: Usage instructions and a brief description of the exploit. The exploit requires the attacker to host cmd.vm on an FTP or HTTPS server and to provide the target Confluence URL and desired command as arguments. The exploit is operational and demonstrates successful command execution, returning the output to the attacker.Yt1g3r · Disclosed Apr 10, 2019 · python · velocity · networkOperationalCVE-2019-3396This repository provides a working exploit for CVE-2019-3396, a remote code execution vulnerability in Atlassian Confluence. The exploit consists of a Python script (cve-2019-3396.py) that sends a crafted POST request to the vulnerable /rest/tinymce/1/macro/preview endpoint. The request abuses the macro preview functionality by supplying a _template parameter that points to a malicious Velocity template (r.vm) hosted on an attacker-controlled FTP server. This template enables arbitrary command execution on the target server. The README.md provides detailed usage instructions, including how to set up the FTP server, example payloads for file reading, command execution, and reverse shell access. The exploit is operational and demonstrates full RCE capabilities, including file read, command execution, and reverse shell. The main fingerprintable endpoints are the Confluence macro preview API and the attacker's FTP server hosting the malicious template.jas502n · Disclosed Apr 10, 2019 · python · networkOperationalCVE-2019-3396This repository provides a working exploit for CVE-2019-3396, a critical remote code execution (RCE) vulnerability in Atlassian Confluence (versions 6.6.0-6.6.11, 6.12.0-6.12.2, 6.13.0-6.13.2, 6.14.0-6.14.1). The vulnerability is due to a server-side template injection (SSTI) in the Widget Connector macro, which allows unauthenticated attackers to execute arbitrary system commands on the server. The repository contains four files: - `README.md`: Detailed description of the vulnerability, affected versions, exploitation steps, and mitigation advice. - `poc.py`: A Python proof-of-concept script that automates exploitation. It sends a crafted POST request to the vulnerable `/rest/tinymce/1/macro/preview` endpoint, instructing the server to fetch and execute a malicious Velocity template from an attacker-controlled FTP server. The script takes the target URL and a command to execute as arguments, and prints the command output if successful. - `cmd.vm`: The malicious Velocity template that executes arbitrary system commands on the target server and returns their output. - `LICENSE`: Creative Commons CC0 license. To use the exploit, the attacker must host `cmd.vm` on an FTP server (e.g., using `pyftpdlib`), then run `poc.py` with the target Confluence URL and the desired command. The exploit is operational and provides full remote code execution capabilities. The main attack vector is network-based, targeting the Confluence REST API endpoint. The repository also demonstrates file read capabilities (e.g., reading `/etc/passwd`). No detection scripts are included; the code is focused on exploitation. The exploit is not part of a larger framework and is self-contained.kh4sh3i · Disclosed Sep 16, 2025 · python · velocity · networkOperational
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
AtlassianConfluence Serverapplication
FAQ

Frequently asked questions

Is CVE-2019-3396 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2019-3396?
Yes. Mallory tracks 4 public exploits or proofs of concept for CVE-2019-3396, the earliest disclosed Mar 25, 2019.
Is there a patch for CVE-2019-3396?
Upgrade to a supported, patched Confluence release. Historical fixes were released in 6.6.12, 6.12.3, 6.13.3, and 6.14.2 for their respective release branches.
What products are affected by CVE-2019-3396?
Atlassian Confluence Server.
How severe is CVE-2019-3396?
CVE-2019-3396 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Oct 16, 2026.
Mallory platform

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, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware30Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.