CVE-2022-31045: Istio.io/istio Ill-formed Headers May Lead To Vulnerability

MODERATE
Advisory Identifier: GHSA-xwx5-5c9g-x68x
CVSS 5.9
CWE-125
Published
Advisory Summary

CVE-2022-31045 is a MODERATE (CVSS 5.9) ill-formed headers may lead to vulnerability (CWE-125: Out-of-bounds Read) affecting Istio.io/istio libraries in the Go ecosystem. The issue involves ill-formed headers may lead to unexpected behavior in istio. Remediation is available by upgrading affected packages to version 1.12.18, 1.13.5, 1.14.1.

CVE-2022-31045 at a Glance

CVE Identifier CVE-2022-31045
GHSA Identifier GHSA-xwx5-5c9g-x68x
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-125: Out-of-bounds Read
Affected Product Istio.io/istio
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2022-31045

To remediate this vulnerability, upgrade all affected Istio.io/istio dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

istio.io/istio fixed: 1.12.18
Upgrade istio.io/istio to 1.12.18
istio.io/istio fixed: 1.13.5
Upgrade istio.io/istio to 1.13.5
istio.io/istio fixed: 1.14.1
Upgrade istio.io/istio to 1.14.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for istio.io/istio

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-31045, inspect your project dependencies for Istio.io/istio:

inspect dependencies for istio.io/istio

Analyze the terminal output to locate any version of Istio.io/istio in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.12.18), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-125: Out-of-bounds Read, where the product reads data past the end, or before the beginning, of the intended buffer. In Istio.io/istio, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Ill-formed headers sent to Envoy in certain configurations can lead to unexpected memory access resulting in undefined behavior or crashing. You are at most risk if you have an Istio ingress Gateway exposed to external traffic. ### Patches 1.12.8, 1.13.5, 1.14.1 ### Workarounds No. ### References More details can be found in the [Istio Security Bulletin](https://istio.io/latest/news/security/istio-security-2022-05) ### For more information If you have any questions or comments about this advisory, please email us at [istio-security-vulnerability-reports@googlegroups.com](mailto:istio-security-vulnerability-reports@googlegroups.com)

CVE-2022-31045 Affected Istio.io/istio Versions

3 component(s)
Fixed Versions:
1.12.181.13.51.14.1
Product / Package Ecosystem Affected Versions Fixed Version
istio.io/istio
Go
< 1.12.18
1.12.18
istio.io/istio
Go
≥ 1.13.0
< 1.13.5
1.13.5
istio.io/istio
Go
≥ 1.14.0
< 1.14.1
1.14.1

References

Frequently Asked Questions

What is CVE-2022-31045?
CVE-2022-31045 is a security vulnerability in Istio.io/istio involving Ill-formed headers may lead to unexpected behavior in Istio under CWE-125: Out-of-bounds Read.
Which Istio.io/istio versions are affected?
Affected versions include releases prior to 1.12.18, 1.13.5, 1.14.1 across affected packages: istio.io/istio.
What version fixes CVE-2022-31045?
Upgrading to 1.12.18, 1.13.5, 1.14.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is istio.io/istio affected?
Yes, istio.io/istio is affected in releases prior to 1.12.18, 1.13.5, 1.14.1. Upgrade your dependency to 1.12.18, 1.13.5, 1.14.1 or later.
What is the CVSS score of CVE-2022-31045?
CVE-2022-31045 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-31045?
CVE-2022-31045 is classified under CWE-125: Out-of-bounds Read (The product reads data past the end, or before the beginning, of the intended buffer.).
How can I check Go dependencies for CVE-2022-31045?
Run the dependency tree command: 'inspect dependencies for istio.io/istio'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xwx5-5c9g-x68x",
  "modified" : "2022-06-10T19:53:55Z",
  "published" : "2022-06-10T19:53:55Z",
  "aliases" : [ "CVE-2022-31045" ],
  "summary" : "Ill-formed headers may lead to unexpected behavior in Istio",
  "details" : "### Impact\nIll-formed headers sent to Envoy in certain configurations can lead to unexpected memory access resulting in undefined behavior or crashing.\n\nYou are at most risk if you have an Istio ingress Gateway exposed to external traffic.\n\n### Patches\n1.12.8, 1.13.5, 1.14.1\n\n### Workarounds\nNo.\n\n### References\nMore details can be found in the [Istio Security Bulletin](https://istio.io/latest/news/security/istio-security-2022-05)\n\n### For more information\nIf you have any questions or comments about this advisory, please email us at [istio-security-vulnerability-reports@googlegroups.com](mailto:istio-security-vulnerability-reports@googlegroups.com)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "istio.io/istio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.12.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "istio.io/istio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.13.0"
      }, {
        "fixed" : "1.13.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "istio.io/istio"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.14.0"
      }, {
        "fixed" : "1.14.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/istio/istio/security/advisories/GHSA-xwx5-5c9g-x68x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-31045"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/istio/istio"
  }, {
    "type" : "WEB",
    "url" : "https://istio.io/latest/news/security/istio-security-2022-05"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-125" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-06-10T19:53:55Z",
    "nvd_published_at" : "2022-06-09T21:15:00Z"
  }
}