# CVE-2025-58176: Dive's improper processing of custom urls can lead to Remote Code Execution

> Attackers can achieve remote code execution on Dive desktop app users via malicious custom URL links or redirects.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **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:** 3 Sep 2025
- **Updated:** 3 Sep 2025
- **Also known as:** GHSA-2r34-7pgx-vvrc

## What is CVE-2025-58176?

CVE-2025-58176 is a high-severity code injection vulnerability in OpenAgentPlatform Dive, published on 3 Sep 2025. 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

Dive is an open-source MCP Host Desktop Application that enables integration with function-calling LLMs. In versions 0.9.0 through 0.9.3, there is a one-click Remote Code Execution vulnerability triggered through a custom url value, `transport` in the JSON object. An attacker can exploit the vulnerability in the following two scenarios: a victim visits a malicious website controlled by the attacker and the website redirect to the URL automatically, or a victim clicks on such a crafted link embedded on a legitimate website (e.g., in user-generated content). In both cases, the browser invokes Dive's custom URL handler (dive:), which launches the Dive app and processes the crafted URL, leading to arbitrary code execution on the victim’s machine. This vulnerability is caused by improper processing of custom url. This is fixed in version 0.9.4.

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

## Which versions are affected by CVE-2025-58176?

It affects 1 product.


Products: Openagentplatform Dive.

## How do I fix CVE-2025-58176?

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

## Is CVE-2025-58176 being exploited?

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

## Other vulnerabilities in OpenAgentPlatform Dive

- [CVE-2026-23523](https://insights.sbomify.com/CVE-2026-23523/): Dive allows One-click Remote Code Execution through Deep Links for MCP Install (critical 9.7)
- [CVE-2025-66580](https://insights.sbomify.com/CVE-2025-66580/): Dive has Cross-Site Scripting vulnerability that can escalate to Remote Code Execution (critical 9.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-58176 and fix it if it is affected.

What it is: CVE-2025-58176 is a high-severity code injection vulnerability in OpenAgentPlatform Dive, published on 3 Sep 2025. 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-2025-58176 exists.

Affected product: OpenAgentPlatform Dive. 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-2025-58176/ (Markdown: https://insights.sbomify.com/CVE-2025-58176/index.md)
```

## Sources

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

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