Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1weHY4LXFocmgtamM3ds4AA8wK

evmos allows transferring unvested tokens after delegations

Impact

This advisory has been created to address the following vulnerabilities found in the Evmos codebase and affecting vesting accounts.

Wrong spendable balance computation

The spendable balance is not updated properly when delegating vested tokens. The following example help in describing the issue:

The issue allowed a clawback vesting account to anticipate the release of unvested tokens.

Missing precompile checks

Preliminary checks on actions computed by the clawback vesting accounts are performed in the ante handler. Evmos core, implements two different ante handlers: one for Cosmos transactions and one for Ethereum transactions. Checks performed on the two implementation are different.

The vulnerability discovered allowed a clawback account to bypass Cosmos ante handler checks by sending an Ethereum transaction targeting a precompile used to interact with a Cosmos SDK module.

Missing create validator check

This vulnerability allowed a user to create a validator using vested tokens to deposit the self-bond.

Patches

The issues have been patched in versions >=V18.0.0.

References

  1. Evmos vesting module

For more information

If you have any questions or comments about this advisory:

Reach out to the Core Team in Discord
Open a discussion in evmos/evmos
Email us at [email protected] for security questions

Permalink: https://github.com/advisories/GHSA-pxv8-qhrh-jc7v
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1weHY4LXFocmgtamM3ds4AA8wK
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Low
Classification: General
Published: 6 months ago
Updated: 3 months ago


CVSS Score: 3.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:L

Identifiers: GHSA-pxv8-qhrh-jc7v, CVE-2024-32873
References: Repository: https://github.com/evmos/evmos
Blast Radius: 1.7

Affected Packages

go:github.com/evmos/evmos/v6
Dependent packages: 25
Dependent repositories: 1
Downloads:
Affected Version Ranges: <= 6.0.4
Fixed in: 18.0.0
All affected versions: 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.0.4
All unaffected versions:
go:github.com/evmos/evmos/v7
Dependent packages: 1
Dependent repositories: 3
Downloads:
Affected Version Ranges: <= 7.0.0
Fixed in: 18.0.0
All affected versions: 7.0.0
All unaffected versions:
go:github.com/evmos/evmos/v8
Dependent packages: 3
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 8.2.3
Fixed in: 18.0.0
All affected versions: 8.0.0, 8.1.0, 8.1.1, 8.2.0, 8.2.2, 8.2.3
All unaffected versions:
go:github.com/evmos/evmos/v9
Dependent packages: 9
Dependent repositories: 1
Downloads:
Affected Version Ranges: <= 9.1.0
Fixed in: 18.0.0
All affected versions: 9.0.0, 9.1.0
All unaffected versions:
go:github.com/evmos/evmos/v10
Dependent packages: 2
Dependent repositories: 1
Downloads:
Affected Version Ranges: <= 10.0.1
Fixed in: 18.0.0
All affected versions: 10.0.0, 10.0.1
All unaffected versions:
go:github.com/evmos/evmos/v11
Dependent packages: 9
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 11.0.2
Fixed in: 18.0.0
All affected versions: 11.0.0, 11.0.1, 11.0.2
All unaffected versions:
go:github.com/evmos/evmos/v12
Dependent packages: 24
Dependent repositories: 3
Downloads:
Affected Version Ranges: <= 12.1.6
Fixed in: 18.0.0
All affected versions: 12.0.0, 12.1.0, 12.1.1, 12.1.2, 12.1.3, 12.1.4, 12.1.5, 12.1.6
All unaffected versions:
go:github.com/evmos/evmos/v13
Dependent packages: 9
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 13.0.2
Fixed in: 18.0.0
All affected versions: 13.0.0, 13.0.1, 13.0.2
All unaffected versions:
go:github.com/evmos/evmos/v14
Dependent packages: 5
Dependent repositories: 1
Downloads:
Affected Version Ranges: <= 14.1.0
Fixed in: 18.0.0
All affected versions: 14.0.0, 14.1.0
All unaffected versions:
go:github.com/evmos/evmos/v15
Dependent packages: 1
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 15.0.0
Fixed in: 18.0.0
All affected versions: 15.0.0
All unaffected versions:
go:github.com/evmos/evmos/v16
Dependent packages: 0
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 16.0.4
Fixed in: 18.0.0
All affected versions: 16.0.0, 16.0.1, 16.0.2, 16.0.3, 16.0.4
All unaffected versions:
go:github.com/evmos/evmos/v17
Dependent packages: 0
Dependent repositories: 0
Downloads:
Affected Version Ranges: <= 17.0.1
Fixed in: 18.0.0
All affected versions: 17.0.0, 17.0.1
All unaffected versions: