# GHSA-56j4-446m-qrf6: Babylon vulnerable to chain half when transaction has fees different than `ubbn`

> An attacker can halt the Babylon blockchain by submitting transactions with non-native fee denominations, causing a panic in the distribution module.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 30 Jun 2025
- **Also known as:** GO-2025-3791

## What is GHSA-56j4-446m-qrf6?

GHSA-56j4-446m-qrf6 is a denial of service vulnerability in github.com/babylonlabs-io/babylon, published on 30 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### Summary

Sending transactions with fees different than native Babylon genesis denom (`ubbn`) leads to chain halt.

### Impact

Denial of Service - Due to panic in the `x/distribution` module `BeginBlocker` triggered by a error when sending fees  from `feeCollector` to `x/distribution` module - https://github.com/cosmos/cosmos-sdk/blob/main/x/distribution/keeper/allocation.go#L28 Babylon Genesis will halt

## Which versions are affected by GHSA-56j4-446m-qrf6?

6 open source packages ship an affected version, including github.com/babylonlabs-io/babylon and github.com/babylonlabs-io/babylon/v2.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `github.com/babylonlabs-io/babylon` | Go | All versions | None |
| `github.com/babylonlabs-io/babylon` | Go | All versions to 1.1.0 | None |
| `github.com/babylonlabs-io/babylon` | Go | All versions to 1.1.0 | None |
| `github.com/babylonlabs-io/babylon/v2` | Go | All versions | 2.2.0 |
| `github.com/babylonlabs-io/babylon/v2` | Go | All versions | 2.2.0 |
| `github.com/babylonlabs-io/babylon/v2` | Go | All versions | 2.2.0 |

## How do I fix GHSA-56j4-446m-qrf6?

Apply the vendor's patch.

## Is GHSA-56j4-446m-qrf6 being exploited?

There is no known exploitation of GHSA-56j4-446m-qrf6 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-56j4-446m-qrf6 and fix it if it is affected.

What it is: GHSA-56j4-446m-qrf6 is a denial of service vulnerability in github.com/babylonlabs-io/babylon, published on 30 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-56j4-446m-qrf6 in the wild and no public exploit code.

Affected packages and fixed versions:
- github.com/babylonlabs-io/babylon (Go): affected all versions; no fix listed
- github.com/babylonlabs-io/babylon (Go): affected all versions up to 1.1.0; no fix listed
- github.com/babylonlabs-io/babylon (Go): affected all versions up to 1.1.0; no fix listed
- github.com/babylonlabs-io/babylon/v2 (Go): affected all versions; fixed in 2.2.0
- github.com/babylonlabs-io/babylon/v2 (Go): affected all versions; fixed in 2.2.0
- github.com/babylonlabs-io/babylon/v2 (Go): affected all versions; fixed in 2.2.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-56j4-446m-qrf6/ (Markdown: https://insights.sbomify.com/GHSA-56j4-446m-qrf6/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-56j4-446m-qrf6

---
From sbomify Insights: https://insights.sbomify.com/GHSA-56j4-446m-qrf6/
Summaries are generated and may contain mistakes; the official description above is the record.
