Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. k8s.io/kubernetes
  4. ›
  5. CVE-2020-8562

CVE-2020-8562: Time-of-check Time-of-use (TOCTOU) Race Condition

February 2, 2022 (updated February 11, 2022)

As mitigations to a report from 2019 and CVE-2020-8555, Kubernetes attempts to prevent proxied connections from accessing link-local or localhost networks when making user-driven connections to Services, Pods, Nodes, or StorageClass service providers. As part of this mitigation Kubernetes does a DNS name resolution check and validates that response IPs are not in the link-local (169.254.0.0/16) or localhost (127.0.0.0/8) range. Kubernetes then performs a second DNS resolution without validation for the actual connection. If a non-standard DNS server returns different non-cached responses, a user may be able to bypass the proxy IP restriction and access private networks on the control plane.

References

  • github.com/advisories/GHSA-qh36-44jv-c8xj
  • github.com/kubernetes/kubernetes/issues/101493
  • groups.google.com/g/kubernetes-security-announce/c/-MFX60_wdOY
  • nvd.nist.gov/vuln/detail/CVE-2020-8562

Code Behaviors & Features

Detect and mitigate CVE-2020-8562 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.21.0 before 1.21.1, all versions starting from 1.20.0 before 1.20.7, all versions starting from 1.19.0 before 1.19.11, all versions before 1.18.19

Fixed versions

  • 1.21.1
  • 1.21.1
  • 1.19.11
  • 1.18.19
  • 1.18.19

Solution

Upgrade to versions 1.21.1, 1.21.1, 1.19.11, 1.18.19, 1.18.19 or above.

Impact 3.1 LOW

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source file

go/k8s.io/kubernetes/CVE-2020-8562.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.