# GHSA-h8g9-6gvh-5mrc: etcd vulnerable to TOCTOU of gateway endpoint authentication

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-10-06T23:12:38.000Z
- Modified: 2022-10-06T23:12:38.000Z
- Weaknesses: CWE-367

## Description

### Vulnerability type
Authentication

### Workarounds
Refer to the [gateway documentation](https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/gateway.md). The vulnerability was spotted due to unclear documentation of how the gateway handles endpoints validation. 

### Detail
The gateway only authenticates endpoints detected from DNS SRV records, and it only authenticates the detected endpoints once. Therefore, if an endpoint changes its authentication settings, the gateway will continue to assume the endpoint is still authenticated. The auditors has noted that appropriate documentation of this validation functionality plus deprecation of this misleading functionality is an acceptable path forward.

### References
Find out more on this vulnerability in the [security audit report](https://github.com/etcd-io/etcd/blob/master/security/SECURITY_AUDIT.pdf)

### For more information
If you have any questions or comments about this advisory:
* Contact the [etcd security committee](https://github.com/etcd-io/etcd/blob/master/security/security-release-process.md#product-security-committee-psc)

(As written by GitHub Advisory Database.)

## Affected

- go.etcd.io/etcd/v3 (Go): from 3.4.0 before 3.4.10; before 3.3.23

## References

- <https://github.com/etcd-io/etcd/security/advisories/GHSA-h8g9-6gvh-5mrc> (web)
- <https://github.com/etcd-io/etcd> (package)

## Sources

- GitHub Advisory Database: [GHSA-h8g9-6gvh-5mrc](https://github.com/advisories/GHSA-h8g9-6gvh-5mrc), CC-BY-4.0, modified 2022-10-06

---

Page: https://cve.day/GHSA-h8g9-6gvh-5mrc · Whole record: https://cve.day/GHSA-h8g9-6gvh-5mrc.json · Rebuilt by cve.day 2026-11-25T22:56:21.617Z
