GHSA-m99c-q26r-m7m7: Github.com/evmos/evmos/v13/x/vesting Evmos Vulnerable To Unauthorized Account Vulnerability

MODERATE
Published
Advisory Summary

GHSA-m99c-q26r-m7m7 is a MODERATE evmos vulnerable to unauthorized account vulnerability (General Security Weakness) affecting Github.com/evmos/evmos/v13/x/vesting libraries in the Go ecosystem. The issue involves evmos vulnerable to unauthorized account creation with vesting module. Remediation is available in the latest vendor maintenance releases.

GHSA-m99c-q26r-m7m7 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-m99c-q26r-m7m7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Github.com/evmos/evmos/v13/x/vesting
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-m99c-q26r-m7m7

To remediate this vulnerability, upgrade all affected Github.com/evmos/evmos/v13/x/vesting dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/evmos/evmos/v13/x/vesting fixed: Latest secure release
Upgrade github.com/evmos/evmos/v13/x/vesting to Latest secure release
github.com/evmos/evmos/v13 fixed: Latest secure release
Upgrade github.com/evmos/evmos/v13 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/evmos/evmos/v13/x/vesting

How to Check if You Are Affected

To determine whether your application is affected by GHSA-m99c-q26r-m7m7, inspect your project dependencies for Github.com/evmos/evmos/v13/x/vesting:

inspect dependencies for github.com/evmos/evmos/v13/x/vesting

Analyze the terminal output to locate any version of Github.com/evmos/evmos/v13/x/vesting in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Github.com/evmos/evmos/v13/x/vesting, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact _What kind of vulnerability is it? Who is impacted?_ Using the vesting module, a malicious attacker can create a new vesting account at a given address, before a contract is created on that address. Addresses of smart contracts deployed to the EVM are deterministic. Therefore, it would be possible for an attacker to front-run a contract creation and create a vesting account at that address. When an address has been initialized without any contract code deployed to it, it will not be possible to upload any afterwards. In the described attack, this would mean that a malicious actor could prevent smart contracts from being deployed correctly. In order to remediate this, an alternative user flow is being implemented for the vesting module: - only the account receiving the vesting funds will be able to create such an account by calling the `CreateClawbackVestingAccount` method and defining a funder address - vesting and lockup periods can then be created by that funder address using `FundClawbackAccount` ### Patches _Has the problem been patched? What versions should users upgrade to?_ ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ ### References _Are there any links users can visit to find out more?_

GHSA-m99c-q26r-m7m7 Affected Github.com/evmos/evmos/v13/x/vesting Versions

2 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/evmos/evmos/v13/x/vesting
Go
≤ 13.0.2
github.com/evmos/evmos/v13
Go
≤ 13.0.2

References

Frequently Asked Questions

What is GHSA-m99c-q26r-m7m7?
GHSA-m99c-q26r-m7m7 is a security vulnerability in Github.com/evmos/evmos/v13/x/vesting involving Evmos vulnerable to unauthorized account creation with vesting module under General Security Weakness.
Which Github.com/evmos/evmos/v13/x/vesting versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/evmos/evmos/v13/x/vesting, github.com/evmos/evmos/v13.
What version fixes GHSA-m99c-q26r-m7m7?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/evmos/evmos/v13/x/vesting affected?
Yes, github.com/evmos/evmos/v13/x/vesting is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/evmos/evmos/v13 affected?
Yes, github.com/evmos/evmos/v13 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-m99c-q26r-m7m7?
GHSA-m99c-q26r-m7m7 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-m99c-q26r-m7m7?
Run the dependency tree command: 'inspect dependencies for github.com/evmos/evmos/v13/x/vesting'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m99c-q26r-m7m7",
  "modified" : "2024-06-10T20:09:07Z",
  "published" : "2024-04-17T17:37:23Z",
  "aliases" : [ ],
  "summary" : "Evmos vulnerable to unauthorized account creation with vesting module",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nUsing the vesting module, a malicious attacker can create a new vesting account at a given\naddress, before a contract is created on that address.\n\nAddresses of smart contracts deployed to the EVM are deterministic. Therefore, it would be possible for an attacker to front-run a contract creation and create a vesting account at that address. \nWhen an address has been initialized without any contract code deployed to it, it will not be possible to upload any afterwards. In the described attack, this would mean that a malicious actor could prevent smart contracts from being deployed correctly.\n\nIn order to remediate this, an alternative user flow is being implemented for the vesting module:\n- only the account receiving the vesting funds will be able to create such an account by calling the `CreateClawbackVestingAccount` method and defining a funder address\n- vesting and lockup periods can then be created by that funder address using `FundClawbackAccount`\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n### References\n_Are there any links users can visit to find out more?_\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/evmos/evmos/v13/x/vesting"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "13.0.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/evmos/evmos/v13"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "13.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/evmos/evmos/security/advisories/GHSA-m99c-q26r-m7m7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/evmos/evmos"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2024-2731"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-17T17:37:23Z",
    "nvd_published_at" : null
  }
}