# CVE-2023-22506: Code injection in Bamboo Data Center

> An authenticated attacker can modify system call actions to execute arbitrary code, compromising confidentiality, integrity, and availability.

- **Severity:** High 7.5 (`CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 18 Jul 2023
- **Updated:** 1 Oct 2024
- **Also known as:** GHSA-hwhw-f642-jhqq

## What is CVE-2023-22506?

CVE-2023-22506 is a high-severity code injection vulnerability in Atlassian Bamboo Data Center, published on 18 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

This High severity Injection and RCE (Remote Code Execution) vulnerability known as CVE-2023-22506 was introduced in version 8.0.0 of Bamboo Data Center.
 

This Injection and RCE (Remote Code Execution) vulnerability, with a CVSS Score of 7.5, allows an authenticated attacker to
modify the actions taken by a system call and execute arbitrary code which has high impact to confidentiality, high impact to integrity, high impact to availability, and no user interaction.
 
 
Atlassian recommends that you upgrade your instance to latest version. If you're unable to upgrade to latest, upgrade to one of these fixed versions: 9.2.3 and 9.3.1. See the release notes ([https://confluence.atlassian.com/bambooreleases/bamboo-release-notes-1189793869.html|https://confluence.atlassian.com/bambooreleases/bamboo-release-notes-1189793869.html]). You can download the latest version of Bamboo Data Center and Bamboo Server from the download center ([https://www.atlassian.com/software/bamboo/download-archives|https://www.atlassian.com/software/bamboo/download-archives]).
 

This vulnerability was reported via our Penetration Testing program.

Weakness: CWE-94 (Improper Control of Generation of Code)

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

It affects 2 products.


Products: Atlassian Bamboo Data Center, Atlassian Bamboo Server.

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

No fix has been published for CVE-2023-22506 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-22506 being exploited?

There is no known exploitation of CVE-2023-22506 in the wild and no public exploit code.

## Fix prompt for AI coding agents

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

What it is: CVE-2023-22506 is a high-severity code injection vulnerability in Atlassian Bamboo Data Center, published on 18 Jul 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-22506 in the wild and no public exploit code.

Affected product: Atlassian Bamboo 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-22506/ (Markdown: https://insights.sbomify.com/CVE-2023-22506/index.md)
```

## Sources

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

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