# GHSA-j3rq-4xjw-xg63: Go package github.com/edgelesssys/marblerun CLI commands susceptible to MITM attacks

> Attackers can redirect CLI commands to a malicious Coordinator instance, bypassing manifest verification in MarbleRun.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 4 Dec 2023
- **Also known as:** GO-2023-2378

## What is GHSA-j3rq-4xjw-xg63?

GHSA-j3rq-4xjw-xg63 is a vulnerability in github.com/edgelesssys/marblerun, published on 4 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

### Impact
Any CLI command issued to a Coordinator after the Manifest has been set, is susceptible to be redirected to another MarbleRun Coordinator instance, which runs the same binary, but potentially a different manifest.

### Patches
 The issue has been patched in [`v1.4.0`](https://github.com/edgelesssys/marblerun/releases/tag/v1.4.0)

### Workarounds

Directly using the REST API of the Coordinator and manually verifying and pinning the certificate to a set Manifest avoids the issue.

## Which versions are affected by GHSA-j3rq-4xjw-xg63?

3 open source packages ship an affected version, including github.com/edgelesssys/marblerun.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/edgelesssys/marblerun` | Go | All versions | 1.4.0 |
| `github.com/edgelesssys/marblerun` | Go | All versions | 1.4.0 |
| `github.com/edgelesssys/marblerun` | Go | All versions | 1.4.0 |

## How do I fix GHSA-j3rq-4xjw-xg63?

Upgrade github.com/edgelesssys/marblerun to 1.4.0 or later.

## Is GHSA-j3rq-4xjw-xg63 being exploited?

There is no known exploitation of GHSA-j3rq-4xjw-xg63 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-j3rq-4xjw-xg63 and fix it if it is affected.

What it is: GHSA-j3rq-4xjw-xg63 is a vulnerability in github.com/edgelesssys/marblerun, published on 4 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-j3rq-4xjw-xg63 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/edgelesssys/marblerun (Go): affected all versions; fixed in 1.4.0
- github.com/edgelesssys/marblerun (Go): affected all versions; fixed in 1.4.0
- github.com/edgelesssys/marblerun (Go): affected all versions; fixed in 1.4.0

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/GHSA-j3rq-4xjw-xg63/ (Markdown: https://insights.sbomify.com/GHSA-j3rq-4xjw-xg63/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-j3rq-4xjw-xg63

---
From sbomify Insights: https://insights.sbomify.com/GHSA-j3rq-4xjw-xg63/
Summaries are generated and may contain mistakes; the official description above is the record.
