CVE-2022-39397: Aliyun oss client Leak Vulnerability

MODERATE
Advisory Identifier: GHSA-3w3h-7xgx-grwc
CVSS 5.6
CWE-200
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2022-39397
GHSA Identifier GHSA-3w3h-7xgx-grwc
Severity MODERATE
CVSS v3.1 Base Score 5.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Aliyun oss client
Package Ecosystem crates.io
Published Date
Last Updated

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).

Attack Vector Physical (AV:P)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability None (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.

aliyun-oss-client fixed: 0.8.1
Upgrade aliyun-oss-client to 0.8.1
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 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

### Impact Users of this library will be affected when using this library, the incoming secret will be disclosed unintentionally. ### Patches This have already been solved. ### Workarounds No, It cannot be patched without upgrading ### References No ### For more information If you have any questions or comments about this advisory: * Email us at [email address](mailto:772364230@qq.com)

CVE-2022-39397 Affected Aliyun oss client Versions

1 component(s)
Fixed Versions:
0.8.1
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?
CVE-2022-39397 is a security vulnerability in Aliyun oss client involving Leak in Aliyun KeySecret under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Aliyun oss client versions are affected?
Affected versions include releases prior to 0.8.1 across affected packages: aliyun-oss-client.
What version fixes CVE-2022-39397?
Upgrading to 0.8.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is aliyun-oss-client affected?
Yes, aliyun-oss-client is affected in releases prior to 0.8.1. Upgrade your dependency to 0.8.1 or later.
What is the CVSS score of CVE-2022-39397?
CVE-2022-39397 has a CVSS v3.1 base score of 5.6 (MODERATE) with vector string CVSS:3.1/AV:P/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N.
What CWE is associated with CVE-2022-39397?
CVE-2022-39397 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check crates.io dependencies for CVE-2022-39397?
Run the dependency tree command: 'inspect dependencies for aliyun-oss-client'. 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-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"
  }
}