CVE-2021-25835: Github.com/cosmos/ethermint Authentication Bypass Vulnerability
HIGHCVE-2021-25835 is a HIGH (CVSS 7.5) authentication bypass vulnerability (CWE-295: Improper Certificate Validation) 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-25835 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-25835
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-25835, 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. 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-25835 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-25835?
Which Github.com/cosmos/ethermint versions are affected?
What version fixes CVE-2021-25835?
Is github.com/cosmos/ethermint affected?
What is the CVSS score of CVE-2021-25835?
What CWE is associated with CVE-2021-25835?
How can I check Go dependencies for CVE-2021-25835?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x5f3-qmwj-4f84",
"modified" : "2023-10-02T11:32:33Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2021-25835" ],
"summary" : "Authentication bypass by capture-replay in github.com/cosmos/ethermint",
"details" : "Cosmos Network Ethermint <= v0.4.0 is affected by a cross-chain transaction replay vulnerability in the EVM module. Since ethermint uses the same chainIDEpoch and signature schemes with ethereum for compatibility, a verified signature in ethereum is still valid in ethermint with the same msg content and chainIDEpoch, which enables \"cross-chain transaction replay\" attack.\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-25835"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/issues/687"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/pull/692"
}, {
"type" : "WEB",
"url" : "https://github.com/cosmos/ethermint/releases/tag/v0.4.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-294", "CWE-295" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-12T21:11:09Z",
"nvd_published_at" : null
}
}