CVE-2022-31045: Istio.io/istio Ill-formed Headers May Lead To Vulnerability
MODERATECVE-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
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).
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.
Upgrade istio.io/istio to 1.12.18
Upgrade istio.io/istio to 1.13.5
Upgrade istio.io/istio to 1.14.1
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
CVE-2022-31045 Affected Istio.io/istio Versions
3 component(s)| 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?
Which Istio.io/istio versions are affected?
What version fixes CVE-2022-31045?
Is istio.io/istio affected?
What is the CVSS score of CVE-2022-31045?
What CWE is associated with CVE-2022-31045?
How can I check Go dependencies for CVE-2022-31045?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}