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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (60th 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-ISTIOIOISTIOPILOTPKGSECURITYAUTHZMODEL-2348292
  • published20 Jan 2022
  • disclosed20 Jan 2022
  • creditUnknown

Introduced: 20 Jan 2022

CVE-2022-21679  (opens in a new tab)
CWE-670  (opens in a new tab)

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.

CVSS Base Scores

version 3.1