# CVE-2023-22527: Atlassian Confluence Data Center and Server Template Injection

> Unauthenticated attackers can achieve remote code execution via template injection in older Confluence versions, requiring immediate upgrades.

- **Severity:** Critical 10.0 (`CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 24 Jan 2024 (CISA KEV), used in ransomware
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 16 Jan 2024
- **Updated:** 21 Oct 2025
- **Also known as:** GHSA-w64x-j9r3-q79q

## What is CVE-2023-22527?

CVE-2023-22527 is a critical code injection vulnerability in Atlassian Confluence Data Center, published on 16 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component)

## Which versions are affected by CVE-2023-22527?

It affects 2 products.


Products: Atlassian Confluence Data Center, Atlassian Confluence Server.

## How do I fix CVE-2023-22527?

No fix has been published for CVE-2023-22527 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 14 Feb 2024.

## Is CVE-2023-22527 being exploited?

Yes. Attackers have exploited CVE-2023-22527 in the wild since at least 24 Jan 2024, including in ransomware campaigns.

Public exploit code:

- CVE-2023-22527 内存马注入工具 (github_poc): https://github.com/Boogipop/CVE-2023-22527-Godzilla-MEMSHELL
- confluence CVE-2023-22527 漏洞利用工具，支持冰蝎/哥斯拉内存马注入，支持设置 http 代理 (github_poc): https://github.com/M0untainShley/CVE-2023-22527-MEMSHELL
- CVE-2023-22527 - RCE (Remote Code Execution) Vulnerability In Confluence Data Center and Confluence Server PoC (github_poc): https://github.com/Avento/CVE-2023-22527_Confluence_RCE
- A critical severity Remote Code Execution (RCE) vulnerability (CVE-2023-22527) was discovered in Confluence Server and Data Center.  (github_poc): https://github.com/Manh130902/CVE-2023-22527-POC
- [Confluence] CVE-2023-22527 realworld poc (github_poc): https://github.com/VNCERT-CC/CVE-2023-22527-confluence
- This repository presents a proof-of-concept of CVE-2023-22527 (github_poc): https://github.com/Vozec/CVE-2023-22527

## Other vulnerabilities in Atlassian Confluence Data Center

- [CVE-2023-22518](https://insights.sbomify.com/CVE-2023-22518/): Atlassian Confluence Data Center and Server Improper Authorization (critical 10.0, exploited in the wild)
- [CVE-2023-22515](https://insights.sbomify.com/CVE-2023-22515/): Atlassian Confluence Data Center and Server Broken Access Control (critical 10.0, exploited in the wild)
- [CVE-2022-26134](https://insights.sbomify.com/CVE-2022-26134/): Atlassian Confluence Server and Data Center Remote Code Execution (critical 9.8, exploited in the wild)
- [CVE-2021-26084](https://insights.sbomify.com/CVE-2021-26084/): Atlassian Confluence Server and Data Center Object-Graph Navigation Language (OGNL) Injection (critical 9.8, exploited in the wild)
- [CVE-2021-26085](https://insights.sbomify.com/CVE-2021-26085/): Atlassian Confluence Server Pre-Authorization Arbitrary File Read (medium 5.3, exploited in the wild)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-22527 and fix it if it is affected.

What it is: CVE-2023-22527 is a critical code injection vulnerability in Atlassian Confluence Data Center, published on 16 Jan 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2023-22527 in the wild since at least 24 Jan 2024, including in ransomware campaigns.

Affected product: Atlassian Confluence Data Center. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-22527/ (Markdown: https://insights.sbomify.com/CVE-2023-22527/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-22527
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-22527
- OSV: https://osv.dev/vulnerability/CVE-2023-22527

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-22527/
Summaries are generated and may contain mistakes; the official description above is the record.
