Access Restriction Bypass Affecting istio.io/istio/pilot/pkg/security/authz/model package, versions >=1.12.0 <1.12.2


0.0
medium

Snyk CVSS

    Attack Complexity High
    User Interaction Required
    Confidentiality High
    Integrity High

    Threat Intelligence

    EPSS 0.22% (60th percentile)
Expand this section
NVD
9.8 critical
Expand this section
Red Hat
9.8 critical

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 ID SNYK-GOLANG-ISTIOIOISTIOPILOTPKGSECURITYAUTHZMODEL-2348292
  • published 20 Jan 2022
  • disclosed 20 Jan 2022
  • credit Unknown

How to fix?

Upgrade istio.io/istio/pilot/pkg/security/authz/model to version 1.12.2 or higher.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass via incorrect configuration generated for proxies of version 1.11 affecting the hosts and notHosts field in the authorization policy. The incorrect configuration could cause requests to accidentally bypass or get rejected by the authorization policy when using the hosts and notHosts fields.

Istio 1.12 supports the hosts and notHosts fields in authorization policy with a new Envoy API shipped with the 1.12 data plane. A bug in the 1.12.0 and 1.12.1 incorrectly uses the new Envoy API with the 1.11 data plane. This will cause the hosts and notHosts fields to be always matched regardless of the actual value of the host header when mixing 1.12.0/1.12.1 control plane and 1.11 data plane.