# CVE-2024-21682: Code injection in Assets Discovery Data Center

> An authenticated attacker can inject code into system calls, leading to high-impact compromise of confidentiality, integrity, and availability.

- **Severity:** High 7.2 (`CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 20 Feb 2024
- **Updated:** 28 Aug 2024
- **Also known as:** GHSA-6rrc-h5ph-44m6

## What is CVE-2024-21682?

CVE-2024-21682 is a high-severity code injection vulnerability in Atlassian Assets Discovery Data Center, published on 20 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.

### Official description

This High severity Injection vulnerability was introduced in Assets Discovery 1.0 - 6.2.0 (all versions). 

Assets Discovery, which can be downloaded via Atlassian Marketplace, is a network scanning tool that can be used with or without an agent with Jira Service Management Cloud, Data Center or Server. It detects hardware and software that is connected to your local network and extracts detailed information about each asset. This data can then be imported into Assets in Jira Service Management to help you manage all of the devices and configuration items within your local network.

This Injection vulnerability, with a CVSS Score of 7.2, allows an authenticated attacker to modify the actions taken by a system call which has high impact to confidentiality, high impact to integrity, high impact to availability, and requires no user interaction.

Atlassian recommends that Assets Discovery customers upgrade to latest version, if you are unable to do so, upgrade your instance to one of the specified supported fixed versions

See the release notes (https://confluence.atlassian.com/assetapps/assets-discovery-3-2-1-cloud-6-2-1-data_center-1333987182.html). You can download the latest version of Assets Discovery from the Atlassian Marketplace (https://marketplace.atlassian.com/apps/1214668/assets-discovery?hosting=datacenter&tab=installation).

This vulnerability was reported via our Penetration Testing program.

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

## Which versions are affected by CVE-2024-21682?

It affects 1 product.


Products: Atlassian Assets Discovery Data Center.

## How do I fix CVE-2024-21682?

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

## Is CVE-2024-21682 being exploited?

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

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-21682 and fix it if it is affected.

What it is: CVE-2024-21682 is a high-severity code injection vulnerability in Atlassian Assets Discovery Data Center, published on 20 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-21682 in the wild and no public exploit code.

Affected product: Atlassian Assets Discovery 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-2024-21682/ (Markdown: https://insights.sbomify.com/CVE-2024-21682/index.md)
```

## Sources

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

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