CVE-2022-3962: Github.com/kiali/kiali Kiali Content Spoofing Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-6f4m-j56w-55c3
CVSS 4.3
CWE-74
Published
Advisory Summary

CVE-2022-3962 is a MODERATE (CVSS 4.3) kiali content spoofing vulnerability vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Github.com/kiali/kiali libraries in the Go ecosystem. The issue involves kiali content spoofing vulnerability. Remediation is available by upgrading affected packages to version 1.57.4.

CVE-2022-3962 at a Glance

CVE Identifier CVE-2022-3962
GHSA Identifier GHSA-6f4m-j56w-55c3
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Github.com/kiali/kiali
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.3

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

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

How to Fix CVE-2022-3962

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

github.com/kiali/kiali fixed: 1.57.4
Upgrade github.com/kiali/kiali to 1.57.4
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 github.com/kiali/kiali

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-3962, inspect your project dependencies for Github.com/kiali/kiali:

inspect dependencies for github.com/kiali/kiali

Analyze the terminal output to locate any version of Github.com/kiali/kiali in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.57.4), 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-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Github.com/kiali/kiali, 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

A content spoofing vulnerability was found in Kiali. It was discovered that Kiali does not implement error handling when the page or endpoint being accessed cannot be found. This issue allows an attacker to perform arbitrary text injection when an error response is retrieved from the URL being accessed.

CVE-2022-3962 Affected Github.com/kiali/kiali Versions

1 component(s)
Fixed Versions:
1.57.4
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kiali/kiali
Go
< 1.57.4
1.57.4

References

Frequently Asked Questions

What is CVE-2022-3962?
CVE-2022-3962 is a security vulnerability in Github.com/kiali/kiali involving Kiali content spoofing vulnerability under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Github.com/kiali/kiali versions are affected?
Affected versions include releases prior to 1.57.4 across affected packages: github.com/kiali/kiali.
What version fixes CVE-2022-3962?
Upgrading to 1.57.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kiali/kiali affected?
Yes, github.com/kiali/kiali is affected in releases prior to 1.57.4. Upgrade your dependency to 1.57.4 or later.
What is the CVSS score of CVE-2022-3962?
CVE-2022-3962 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2022-3962?
CVE-2022-3962 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2022-3962?
Run the dependency tree command: 'inspect dependencies for github.com/kiali/kiali'. 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-6f4m-j56w-55c3",
  "modified" : "2023-09-25T17:43:43Z",
  "published" : "2023-09-23T21:30:17Z",
  "aliases" : [ "CVE-2022-3962" ],
  "summary" : "Kiali content spoofing vulnerability",
  "details" : "A content spoofing vulnerability was found in Kiali. It was discovered that Kiali does not implement error handling when the page or endpoint being accessed cannot be found. This issue allows an attacker to perform arbitrary text injection when an error response is retrieved from the URL being accessed.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kiali/kiali"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.57.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-3962"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kiali/kiali/commit/aab7694f850f04d7fd875fac5f720a93ccdf01ad"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2023:0542"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2022-3962"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2148661"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kiali/kiali"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/OSSM-2251?attachmentViewMode=list"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-09-25T17:43:43Z",
    "nvd_published_at" : "2023-09-23T20:15:10Z"
  }
}