# GHSA-8pfh-j44r-f654: Cosmos EVM Vulnerability

> A vulnerability in the Cosmos EVM library requires upgrading to patched versions to mitigate potential security risks.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not stated
- **Attackable:** Over the internet
- **Victim action needed:** Not stated
- **Fix available:** Yes
- **Published:** 21 Oct 2025
- **Also known as:** GO-2025-4041

## What is GHSA-8pfh-j44r-f654?

GHSA-8pfh-j44r-f654 is a vulnerability in github.com/cosmos/evm, published on 21 Oct 2025. It can be exploited over the network.

### Official description

## Patches
Patched in versions `v0.3.1`, `v0.4.2`, and in the `v0.5.0` release. More information will be disclosed at a later point to ensure chains have time to safely upgrade.

## Workarounds
No workarounds for chains that make use of static or dynamic precompiles. Upgrading is strongly recommended.

## Testing
Tests are introduced in every affected version.

## Credits
Special thanks to @yihuang for the help on this issue.

## Which versions are affected by GHSA-8pfh-j44r-f654?

5 open source packages ship an affected version, including github.com/cosmos/evm.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/cosmos/evm` | Go | From 0.3.0 | 0.3.2, 0.4.2 |
| `github.com/cosmos/evm` | Go | From 0.3.0 | 0.3.2 |
| `github.com/cosmos/evm` | Go | From 0.3.0 | 0.3.2 |
| `github.com/cosmos/evm` | Go | From 0.4.0 | 0.4.2 |
| `github.com/cosmos/evm` | Go | From 0.4.0 | 0.4.2 |

## How do I fix GHSA-8pfh-j44r-f654?

Upgrade github.com/cosmos/evm to a fixed version for your release line: 0.3.2 or 0.4.2.

## Is GHSA-8pfh-j44r-f654 being exploited?

There is no known exploitation of GHSA-8pfh-j44r-f654 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-8pfh-j44r-f654 and fix it if it is affected.

What it is: GHSA-8pfh-j44r-f654 is a vulnerability in github.com/cosmos/evm, published on 21 Oct 2025. It can be exploited over the network.
Exploitation: There is no known exploitation of GHSA-8pfh-j44r-f654 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/cosmos/evm (Go): affected from 0.3.0; fixed in 0.3.2, 0.4.2
- github.com/cosmos/evm (Go): affected from 0.3.0; fixed in 0.3.2
- github.com/cosmos/evm (Go): affected from 0.3.0; fixed in 0.3.2
- github.com/cosmos/evm (Go): affected from 0.4.0; fixed in 0.4.2
- github.com/cosmos/evm (Go): affected from 0.4.0; fixed in 0.4.2

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-8pfh-j44r-f654/ (Markdown: https://insights.sbomify.com/GHSA-8pfh-j44r-f654/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-8pfh-j44r-f654

---
From sbomify Insights: https://insights.sbomify.com/GHSA-8pfh-j44r-f654/
Summaries are generated and may contain mistakes; the official description above is the record.
