# CVE-2025-62375: go-witness Improper Verification of AWS EC2 Identity Documents

> Attackers can bypass AWS EC2 identity verification in go-witness by supplying forged documents, leading to incorrect trust decisions in attestation workflows.

- **Severity:** Medium 6.9 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 15 Oct 2025
- **Updated:** 15 Oct 2025
- **Also known as:** CLEANSTART-2026-AQ99839, CLEANSTART-2026-EU40217, GHSA-72c7-4g63-hpw5, GO-2025-4028

## What is CVE-2025-62375?

CVE-2025-62375 is a medium-severity vulnerability in in-toto go-witness, published on 15 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

go-witness and witness are Go modules for generating attestations. In go-witness versions 0.8.6 and earlier and witness versions 0.9.2 and earlier the AWS attestor improperly verifies AWS EC2 instance identity documents. Verification can incorrectly succeed when a signature is not present or is empty, and when RSA signature verification fails. The attestor also embeds a single legacy global AWS public certificate and does not account for newer region specific certificates issued in 2024, making detection of forged documents difficult without additional trusted region data. An attacker able to supply or intercept instance identity document data (such as through Instance Metadata Service impersonation) can cause a forged identity document to be accepted, leading to incorrect trust decisions based on the attestation. This is fixed in go-witness 0.9.1 and witness 0.10.1. As a workaround, manually verify the included identity document, signature, and public key with standard tools (for example openssl) following AWS’s verification guidance, or disable use of the AWS attestor until upgraded.

Weakness: CWE-295 (Improper Certificate Validation)

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

3 open source packages ship an affected version, including github.com/in-toto/go-witness.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/in-toto/go-witness` | Go | All versions | 0.9.1 |
| `github.com/in-toto/go-witness` | Go | All versions | 0.9.1 |
| `github.com/in-toto/go-witness` | Go | All versions | 0.9.1 |

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

Upgrade github.com/in-toto/go-witness to 0.9.1 or later.

## Is CVE-2025-62375 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2025-62375 is a medium-severity vulnerability in in-toto go-witness, published on 15 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-62375 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/in-toto/go-witness (Go): affected all versions; fixed in 0.9.1
- github.com/in-toto/go-witness (Go): affected all versions; fixed in 0.9.1
- github.com/in-toto/go-witness (Go): affected all versions; fixed in 0.9.1

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-62375/ (Markdown: https://insights.sbomify.com/CVE-2025-62375/index.md)
```

## Sources

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

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