CVE-2022-39383: Github.com/oam dev/kubevela KubeVela VelaUX APIserver Has SSRF Vulnerability
MODERATECVE-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
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).
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.
Upgrade github.com/oam-dev/kubevela to 1.6.2
Upgrade github.com/oam-dev/kubevela to 1.5.9
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
CVE-2022-39383 Affected Github.com/oam dev/kubevela Versions
2 component(s)| 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?
Which Github.com/oam dev/kubevela versions are affected?
What version fixes CVE-2022-39383?
Is github.com/oam-dev/kubevela affected?
What is the CVSS score of CVE-2022-39383?
What CWE is associated with CVE-2022-39383?
How can I check Go dependencies for CVE-2022-39383?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}