CVE-2020-15113: Improper Preservation of Permissions in etcd
Vulnerability type Access Controls
Detail etcd creates certain directory paths (etcd data directory and the directory path when provided to automatically generate self-signed certificates for TLS connections with clients) with restricted access permissions (700) by using the os.MkdirAll. This function does not perform any permission checks when a given directory path exists already. Specific Go Package Affected github.com/etcd-io/etcd/pkg/fileutil Workarounds Make sure these directories have the desired permit (700).
References Find out more on this vulnerability in the security audit report
For more information If you have any questions or comments about this advisory: Contact the etcd security committee
Other sources
A flaw was found in etcd. Certain directory paths are created with restricted access permissions (700) by using the os.MkdirAll. This function does not perform any permission checks when a given directory path exists already.
In etcd before versions 3.3.23 and 3.4.10, certain directory paths are created (etcd data directory and the directory path when provided to automatically generate self-signed certificates for TLS connections with clients) with restricted access permissions (700) by using the os.MkdirAll. This function does not perform any permission checks when a given directory path exists already. A possible workaround is to ensure the directories have the desired permission (700).
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2020-15113?
CVE-2020-15113 is a vulnerability found in etcd that allows certain directory paths to be created with restricted access permissions.
What is the severity of CVE-2020-15113?
CVE-2020-15113 has a severity rating of 7.1 (high).
Which software versions are affected by CVE-2020-15113?
etcd versions up to and including 3.3.23 and 3.4.10 are affected by CVE-2020-15113.
How can CVE-2020-15113 be fixed?
To fix CVE-2020-15113, update etcd to version 3.4.10 or apply the appropriate remedy provided by the vendor.
Are there any references for CVE-2020-15113?
Yes, you can find references for CVE-2020-15113 at the following links:<ul><li><a href='https://github.com/etcd-io/etcd/security/advisories/GHSA-chh6-ppwq-jh92'>https://github.com/etcd-io/etcd/security/advisories/GHSA-chh6-ppwq-jh92</a></li><li><a href='https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1868871'>https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1868871</a></li><li><a href='https://access.redhat.com/errata/RHSA-2021:0916'>https://access.redhat.com/errata/RHSA-2021:0916</a></li></ul>