Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2019-3396: Server-Side Template Injection in Atlassian Confluence Widget Connector

Published Mar 25, 2019 · Updated 9 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
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. Remote, unauthenticated attackers can supply crafted macro input to achieve path traversal and arbitrary code execution on the Confluence instance. Affected releases include versions before 6.6.12, versions 6.7.0 through 6.12.2, versions 6.13.0 through 6.13.2, and versions 6.14.0 through 6.14.1.

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 compromises the confidentiality, integrity, and availability of the Confluence instance and resources accessible to its service account. Arbitrary code execution can enable data theft, malicious modification, malware deployment, and service disruption. Observed exploitation has delivered GandCrab ransomware, cryptocurrency miners with rootkit-based concealment, and backdoors or botnet malware used for distributed denial-of-service attacks. Further host or network compromise depends on the service account's permissions and reachable resources.

Mitigation

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

Until upgrading is possible, restrict network access to the vulnerable Confluence instance to trusted systems and remove unnecessary public exposure. Use network intrusion detection or prevention and application monitoring to identify exploitation attempts and suspicious child processes or outbound connections. Apply least-privilege service permissions and network segmentation to limit the consequences of compromise. These controls do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade to a currently supported Confluence release containing the fix. The original fixed releases were 6.6.12, 6.12.3, 6.13.3, and 6.14.2 for their respective branches. Older affected installations must move to a fixed release rather than merely update within an unpatched branch. Because this vulnerability has been actively exploited, inspect affected systems for unauthorized processes, files, persistence mechanisms, and network connections; initiate incident response and recovery if compromise is identified.

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 Nov 19, 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 currently supported Confluence release containing the fix. The original fixed releases were 6.6.12, 6.12.3, 6.13.3, and 6.14.2 for their respective 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 Nov 19, 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 malware31Malware 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.