CVE-2021-25834: Github.com/cosmos/ethermint Authentication Bypass Vulnerability
HIGHCVE-2021-25834 is a HIGH (CVSS 7.5) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Github.com/cosmos/ethermint libraries in the Go ecosystem. The issue involves authentication bypass by capture-replay in github.com/cosmos/ethermint. Remediation is available by upgrading affected packages to version 0.4.1.
CVE-2021-25834 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2021-25834
To remediate this vulnerability, upgrade all affected Github.com/cosmos/ethermint dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/cosmos/ethermint to 0.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/cosmos/ethermint
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-25834, inspect your project dependencies for Github.com/cosmos/ethermint:
inspect dependencies for github.com/cosmos/ethermint
Analyze the terminal output to locate any version of Github.com/cosmos/ethermint in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.1), 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 CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/cosmos/ethermint, 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
CVE-2021-25834 Affected Github.com/cosmos/ethermint Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/cosmos/ethermint
|
Go |
< 0.4.1
|
0.4.1
|
References
Frequently Asked Questions
What is CVE-2021-25834?
Which Github.com/cosmos/ethermint versions are affected?
What version fixes CVE-2021-25834?
Is github.com/cosmos/ethermint affected?
What is the CVSS score of CVE-2021-25834?
What CWE is associated with CVE-2021-25834?
How can I check Go dependencies for CVE-2021-25834?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-93p5-8fqw-wjx3",
"modified" : "2023-10-02T11:44:19Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2021-25834" ],
"summary" : "Authentication bypass by capture-replay in github.com/cosmos/ethermint",
"details" : "Cosmos Network Ethermint <= v0.4.0 is affected by a transaction replay vulnerability in the EVM module. If the victim sends a very large nonce transaction, the attacker can replay the transaction through the application.\n\n### Specific Go Packages Affected\ngithub.com/cosmos/ethermint/rpc/namespaces/eth",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/cosmos/ethermint"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-25834"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/issues/686"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/commit/d7bdbd7488644f0aaeee5cdcdc119c863f199f72"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/releases/tag/v0.4.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287", "CWE-294" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-12T21:17:36Z",
"nvd_published_at" : null
}
}