Privilege Escalation Affecting istio.io/istio/pilot/pkg/config/kube/gateway package, versions >=1.12.0 <1.12.2


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-ISTIOIOISTIOPILOTPKGCONFIGKUBEGATEWAY-2348631
  • published20 Jan 2022
  • disclosed20 Jan 2022
  • creditUnknown

Introduced: 20 Jan 2022

CVE-2022-21701  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade istio.io/istio/pilot/pkg/config/kube/gateway to version 1.12.2 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Escalation. Users who have CREATE permission for gateways.gateway.networking.k8s.io objects can escalate this privilege to create other resources that they may not have access to, such as Pod. This vulnerability impacts only an Alpha level feature, the Kubernetes Gateway API.

###Workaround:

  1. Remove the gateways.gateway.networking.k8s.io CustomResourceDefinition, or

  2. Set PILOT_ENABLE_GATEWAY_API_DEPLOYMENT_CONTROLLER=true environment variable in Istiod, or

  3. Remove CREATE permissions for gateways.gateway.networking.k8s.io objects from untrusted users.

References

CVSS Scores

version 3.1