Atlassian Confluence Widget Connector SSTI RCE
CVE-2019-3396 is a server-side template injection vulnerability in the Widget Connector macro component of Atlassian Confluence Server and Data Center. Affected versions include Confluence Server before 6.6.12 in the 6.6.x branch, 6.7.0 through before 6.12.3, 6.13.0 through before 6.13.3, and 6.14.0 through before 6.14.2. The flaw allows a remote attacker to abuse the Widget Connector functionality to trigger server-side template injection, which can also be leveraged for path traversal and ultimately remote code execution on the Confluence host. The provided content explicitly identifies the vulnerable component as the Widget Connector macro and describes the issue as stemming from a programming error in that component.
Are you exposed to this one?
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
Impact, mitigation & remediation
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
3 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (4 hidden).
This 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.
This 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.
This 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.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A remote code execution vulnerability in Atlassian Confluence Server and Data Center, which can be exploited to execute arbitrary code on the server. It has been used by threat actors, including Lazarus Group, to deploy malware such as the Dacls RAT.
An Atlassian Confluence vulnerability referenced as being used with a working payload to spread the Dacls bot program.
A Confluence vulnerability used by attackers to infect outdated Linux servers with the Godlua malware.
Atlassian Confluence Server/Data Center -tuotteiden Widget Connector macro -komponentin ohjelmointivirhe, jota hyödynnetään aktiivisesti; julkinen PoC kiihdytti rikollista hyväksikäyttöä ja johti tietomurtoihin.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.