CVE-2022-39383: Github.com/oam dev/kubevela KubeVela VelaUX APIserver Has SSRF Vulnerability

MODERATE
Advisory Identifier: GHSA-m5xf-x7q6-3rm7
CVSS 4.9
CWE-918
Published
Advisory Summary

CVE-2022-39383 is a MODERATE (CVSS 4.9) kubevela velaux apiserver has ssrf vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Github.com/oam dev/kubevela libraries in the Go ecosystem. The issue involves kubevela velaux apiserver has ssrf vulnerability. Remediation is available by upgrading affected packages to version 1.6.2, 1.5.9.

CVE-2022-39383 at a Glance

CVE Identifier CVE-2022-39383
GHSA Identifier GHSA-m5xf-x7q6-3rm7
Severity MODERATE
CVSS v3.1 Base Score 4.9
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Github.com/oam dev/kubevela
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 4.9

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

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

How to Fix CVE-2022-39383

To remediate this vulnerability, upgrade all affected Github.com/oam dev/kubevela 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/oam-dev/kubevela fixed: 1.6.2
Upgrade github.com/oam-dev/kubevela to 1.6.2
github.com/oam-dev/kubevela fixed: 1.5.9
Upgrade github.com/oam-dev/kubevela to 1.5.9
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/oam-dev/kubevela

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-39383, inspect your project dependencies for Github.com/oam dev/kubevela:

inspect dependencies for github.com/oam-dev/kubevela

Analyze the terminal output to locate any version of Github.com/oam dev/kubevela in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.2), 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-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Github.com/oam dev/kubevela, 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 Users using the VelaUX APIServer could be affected by this vulnerability. When using Helm Chart as the component delivery method, the request address of the warehouse is not restricted, and there is a blind SSRF vulnerability. This issue is patched in 1.5.9 and 1.6.2. ### References Fix by: #5000 ### For more information If you have any questions or comments about this advisory: * Open an issue in [KubeVela repo](https://github.com/kubevela/kubevela) * Email us at [here](https://github.com/kubevela/kubevela#contact-us)

CVE-2022-39383 Affected Github.com/oam dev/kubevela Versions

2 component(s)
Fixed Versions:
1.6.21.5.9
Product / Package Ecosystem Affected Versions Fixed Version
github.com/oam-dev/kubevela
Go
≥ 1.6.0-alpha.1
< 1.6.2
1.6.2
github.com/oam-dev/kubevela
Go
< 1.5.9
1.5.9

References

Frequently Asked Questions

What is CVE-2022-39383?
CVE-2022-39383 is a security vulnerability in Github.com/oam dev/kubevela involving KubeVela VelaUX APIserver has SSRF vulnerability under CWE-918: Server-Side Request Forgery (SSRF).
Which Github.com/oam dev/kubevela versions are affected?
Affected versions include releases prior to 1.6.2, 1.5.9 across affected packages: github.com/oam-dev/kubevela.
What version fixes CVE-2022-39383?
Upgrading to 1.6.2, 1.5.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/oam-dev/kubevela affected?
Yes, github.com/oam-dev/kubevela is affected in releases prior to 1.6.2, 1.5.9. Upgrade your dependency to 1.6.2, 1.5.9 or later.
What is the CVSS score of CVE-2022-39383?
CVE-2022-39383 has a CVSS v3.1 base score of 4.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2022-39383?
CVE-2022-39383 is classified under CWE-918: Server-Side Request Forgery (SSRF) (The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.).
How can I check Go dependencies for CVE-2022-39383?
Run the dependency tree command: 'inspect dependencies for github.com/oam-dev/kubevela'. 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-m5xf-x7q6-3rm7",
  "modified" : "2023-08-29T22:52:24Z",
  "published" : "2022-11-18T17:14:39Z",
  "aliases" : [ "CVE-2022-39383" ],
  "summary" : "KubeVela VelaUX APIserver has SSRF vulnerability ",
  "details" : "### Impact\nUsers using the VelaUX APIServer could be affected by this vulnerability.\n\nWhen using Helm Chart as the component delivery method, the request address of the warehouse is not restricted, and there is a blind SSRF vulnerability.\n\nThis issue is patched in 1.5.9 and 1.6.2.\n\n### References\nFix by: #5000 \n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [KubeVela repo](https://github.com/kubevela/kubevela)\n* Email us at [here](https://github.com/kubevela/kubevela#contact-us)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/oam-dev/kubevela"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.6.0-alpha.1"
      }, {
        "fixed" : "1.6.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/oam-dev/kubevela"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kubevela/kubevela/security/advisories/GHSA-m5xf-x7q6-3rm7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39383"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevela/kubevela/pull/5000"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubevela/kubevela"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2022-1113"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-11-18T17:14:39Z",
    "nvd_published_at" : "2022-11-16T20:15:00Z"
  }
}