CVE-2018-18206: Github.com/bytom/bytom Denial of Service Vulnerability
HIGHCVE-2018-18206 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-190: Integer Overflow or Wraparound) affecting Github.com/bytom/bytom libraries in the Go ecosystem. The issue involves denial of service in bytom. Remediation is available by upgrading affected packages to version 1.0.6.
CVE-2018-18206 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.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2018-18206
To remediate this vulnerability, upgrade all affected Github.com/bytom/bytom 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/bytom/bytom to 1.0.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/bytom/bytom
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-18206, inspect your project dependencies for Github.com/bytom/bytom:
inspect dependencies for github.com/bytom/bytom
Analyze the terminal output to locate any version of Github.com/bytom/bytom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.6), 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-190: Integer Overflow or Wraparound, where the product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. this occurs when an integer value is incremented to a value that is too large to store in the associated representation. when this occurs, the value may become a very small or negative number. In Github.com/bytom/bytom, 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-2018-18206 Affected Github.com/bytom/bytom Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/bytom/bytom
|
Go |
< 1.0.6
|
1.0.6
|
References
Frequently Asked Questions
What is CVE-2018-18206?
Which Github.com/bytom/bytom versions are affected?
What version fixes CVE-2018-18206?
Is github.com/bytom/bytom affected?
What is the CVSS score of CVE-2018-18206?
What CWE is associated with CVE-2018-18206?
How can I check Go dependencies for CVE-2018-18206?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vc3x-gx6c-g99f",
"modified" : "2023-02-07T22:07:35Z",
"published" : "2022-02-15T01:57:18Z",
"aliases" : [ "CVE-2018-18206" ],
"summary" : "Denial of Service in Bytom",
"details" : "In the client in Bytom before 1.0.6, checkTopicRegister in p2p/discover/net.go does not prevent negative idx values, leading to a crash.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/bytom/bytom"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.6"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-18206"
}, {
"type" : "WEB",
"url" : "https://github.com/Bytom/bytom/pull/1307"
}, {
"type" : "WEB",
"url" : "https://github.com/Bytom/bytom/commit/1ac3c8ac4f2b1e1df9675228290bda6b9586ba42"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Bytom/bytom"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0079"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-190" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-20T18:55:02Z",
"nvd_published_at" : null
}
}