CVE-2020-15112: Go.etcd.io/etcd/v3 Etcd's WAL `ReadAll` Method Vulnerable Vulnerability
MODERATECVE-2020-15112 is a MODERATE (CVSS 5.3) etcd's wal `readall` method vulnerable vulnerability (CWE-20: Improper Input Validation) affecting Go.etcd.io/etcd/v3 libraries in the Go ecosystem. The issue involves etcd's wal `readall` method vulnerable to an entry with large index causing panic. Remediation is available by upgrading affected packages to version 3.3.23, 3.4.10.
CVE-2020-15112 at a Glance
Security Impact
CVSS: 5.3
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:N/A:L).
How to Fix CVE-2020-15112
To remediate this vulnerability, upgrade all affected Go.etcd.io/etcd/v3 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 go.etcd.io/etcd/v3 to 3.3.23
Upgrade go.etcd.io/etcd/v3 to 3.4.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for go.etcd.io/etcd/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2020-15112, inspect your project dependencies for Go.etcd.io/etcd/v3:
inspect dependencies for go.etcd.io/etcd/v3
Analyze the terminal output to locate any version of Go.etcd.io/etcd/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.23), 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Go.etcd.io/etcd/v3, 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-2020-15112 Affected Go.etcd.io/etcd/v3 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
go.etcd.io/etcd/v3
|
Go |
< 3.3.23
|
3.3.23
|
|
go.etcd.io/etcd/v3
|
Go |
≥ 3.4.0
< 3.4.10
|
3.4.10
|
References
Frequently Asked Questions
What is CVE-2020-15112?
Which Go.etcd.io/etcd/v3 versions are affected?
What version fixes CVE-2020-15112?
Is go.etcd.io/etcd/v3 affected?
What is the CVSS score of CVE-2020-15112?
What CWE is associated with CVE-2020-15112?
How can I check Go dependencies for CVE-2020-15112?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m332-53r6-2w93",
"modified" : "2022-10-06T23:03:57Z",
"published" : "2022-10-06T23:03:57Z",
"aliases" : [ "CVE-2020-15112" ],
"summary" : "etcd's WAL `ReadAll` method vulnerable to an entry with large index causing panic",
"details" : "### Vulnerability type\nData Validation\n\n### Detail\nIn the ReadAll method in wal/wal.go, it is possible to have an entry index greater then the number of entries. This could cause issues when WAL entries are being read during consensus as an arbitrary etcd consensus participant could go down from a runtime panic when reading the entry.\n\n### References\nFind out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "go.etcd.io/etcd/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.3.23"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "go.etcd.io/etcd/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.4.0"
}, {
"fixed" : "3.4.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/security/advisories/GHSA-m332-53r6-2w93"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-15112"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/pull/11793"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/commit/7d1cf640497cbcdfb932e619b13624112c7e3865"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/commit/f4b650b51dc4a53a8700700dc12e1242ac56ba07"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/etcd-io/etcd"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMP"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2020-0005"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-129", "CWE-20" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-10-06T23:03:57Z",
"nvd_published_at" : "2020-08-05T20:15:00Z"
}
}