# CVE-2024-12908: Code injection in Secret Server

> Remote attackers can execute arbitrary code on user machines by exploiting improper URI validation in the protocol handler via malicious web pages or documents.

- **Severity:** Medium 6.9 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 26 Dec 2024
- **Updated:** 27 Dec 2024
- **Also known as:** GHSA-qq79-x2qm-v335

## What is CVE-2024-12908?

CVE-2024-12908 is a medium-severity code injection vulnerability in Delinea Secret Server, published on 26 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Delinea addressed a reported case on Secret Server v11.7.31 (protocol handler version 6.0.3.26) where, within the protocol handler function, URI's were compared before normalization and canonicalization, potentially leading to over matching against the approved list. If this attack were successfully exploited, a remote attacker may be able to convince a user to visit a malicious web-page, or open a
malicious document which could trigger the vulnerable handler, allowing them to execute
arbitrary code on the user's machine. Delinea added additional validation that the downloaded installer's batch file was in the expected format.

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

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

It affects 1 product.


Products: Delinea Secret Server.

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

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

## Is CVE-2024-12908 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12908 exists.

## Other vulnerabilities in Delinea Secret Server

- [CVE-2023-4589](https://insights.sbomify.com/CVE-2023-4589/): Insufficient verification of data authenticity vulnerability in Delinea Secret Server (critical 9.1)
- [CVE-2024-33891](https://insights.sbomify.com/CVE-2024-33891/): Hardcoded credentials in n/a (high 8.8)
- [CVE-2024-25652](https://insights.sbomify.com/CVE-2024-25652/): Missing authorization in Secret Server (high 7.6)
- [CVE-2023-4588](https://insights.sbomify.com/CVE-2023-4588/): File accessibility vulnerability in Delinea Secret Server (medium 6.8)
- [CVE-2024-25649](https://insights.sbomify.com/CVE-2024-25649/): Information disclosure in n/a (medium 6.7)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-12908 is a medium-severity code injection vulnerability in Delinea Secret Server, published on 26 Dec 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12908 exists.

Affected product: Delinea Secret Server. 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-12908/ (Markdown: https://insights.sbomify.com/CVE-2024-12908/index.md)
```

## Sources

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

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