Skip to content
RCE Write-up Intermediate

RCE in Jira(CVE-2019–11581)

Jira's 'contact administrators' feature was vulnerable to server-side template injection in the subject field, allowing an unauthenticated attacker to execute arbitrary commands on the server. The author confirmed this by injecting a FreeMarker payload that caused the server to make outbound HTTP requests.

medium.com

Published on medium.com

So, here I will share info about new critical vulnerability in Jira server. It was not originally found by me.

ruvlol, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the 'contact administrators' feature passed the subject field directly into a FreeMarker template without sanitisation, allowing template expression evaluation.

Impact

An unauthenticated attacker could execute arbitrary commands on the Jira server, but only if the contact administrators feature is enabled and Jira is not protected by ACL, firewall, or SSO.

What the attacker needed

Contact administrators feature enabled; no ACL, firewall, or SSO blocking unauthenticated access

How it was found

  1. Enable the 'contact administrators' functionality in Jira (it is off by default).
  2. Access the contact administrators page at the given URL.
  3. Insert a FreeMarker payload into the subject field of the contact form.
  4. Submit the form and observe outbound requests (e.g., curl callbacks) confirming command execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Server-side template injection happens when user input is inserted into a template and the template engine evaluates it as code. Here, the subject line of a contact form was treated as a FreeMarker template, so an attacker could run system commands on the Jira server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.