CVE-2022-39397: Aliyun oss client Leak Vulnerability
MODERATECVE-2022-39397 is a MODERATE (CVSS 5.6) leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Aliyun oss client libraries in the crates.io ecosystem. The issue involves leak in aliyun keysecret. Remediation is available by upgrading affected packages to version 0.8.1.
CVE-2022-39397 at a Glance
Security Impact
CVSS: 5.6
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N).
How to Fix CVE-2022-39397
To remediate this vulnerability, upgrade all affected Aliyun oss client 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 aliyun-oss-client to 0.8.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for aliyun-oss-client
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-39397, inspect your project dependencies for Aliyun oss client:
inspect dependencies for aliyun-oss-client
Analyze the terminal output to locate any version of Aliyun oss client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.1), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Aliyun oss client, 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-39397 Affected Aliyun oss client Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aliyun-oss-client
|
crates.io |
< 0.8.1
|
0.8.1
|
References
Frequently Asked Questions
What is CVE-2022-39397?
Which Aliyun oss client versions are affected?
What version fixes CVE-2022-39397?
Is aliyun-oss-client affected?
What is the CVSS score of CVE-2022-39397?
What CWE is associated with CVE-2022-39397?
How can I check crates.io dependencies for CVE-2022-39397?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3w3h-7xgx-grwc",
"modified" : "2023-02-08T16:18:19Z",
"published" : "2022-11-21T20:39:05Z",
"aliases" : [ "CVE-2022-39397" ],
"summary" : "Leak in Aliyun KeySecret ",
"details" : "### Impact\nUsers of this library will be affected when using this library, the incoming secret will be disclosed unintentionally.\n\n### Patches\nThis have already been solved.\n\n### Workarounds\nNo, It cannot be patched without upgrading\n\n### References\nNo\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Email us at [email address](mailto:772364230@qq.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "aliyun-oss-client"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/tu6ge/oss-rs/security/advisories/GHSA-3w3h-7xgx-grwc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-39397"
}, {
"type" : "WEB",
"url" : "https://github.com/tu6ge/oss-rs/commit/e4553f7d74fce682d802f8fb073943387796df29"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/tu6ge/oss-rs"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2022-0089.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-21T20:39:05Z",
"nvd_published_at" : "2022-11-22T21:15:00Z"
}
}