GHSA-6h2x-4gjf-jc5w: Autogluon.multimodal Autogluon.multimodal Vulnerable To Unsafe YAML Vulnerability

HIGH
CWE-502
Published
Advisory Summary

GHSA-6h2x-4gjf-jc5w is a HIGH autogluon.multimodal vulnerable to unsafe yaml vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Autogluon.multimodal libraries in the PyPI ecosystem. The issue involves autogluon.multimodal vulnerable to unsafe yaml deserialization. Remediation is available by upgrading affected packages to version 0.4.3, 0.5.2.

GHSA-6h2x-4gjf-jc5w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-6h2x-4gjf-jc5w
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Autogluon.multimodal
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix GHSA-6h2x-4gjf-jc5w

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

autogluon.multimodal fixed: 0.4.3
pip install autogluon.multimodal>=0.4.3
autogluon.multimodal fixed: 0.5.2
pip install autogluon.multimodal>=0.5.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show autogluon.multimodal

How to Check if You Are Affected

To determine whether your Python environment is affected by GHSA-6h2x-4gjf-jc5w, inspect your installed packages using pip:

pip show autogluon.multimodal

Analyze the terminal output to locate any version of Autogluon.multimodal in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.4.3), your application is affected.

Note: The pip show autogluon.multimodal command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Autogluon.multimodal, 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 A potential unsafe deserialization issue exists within the `autogluon.multimodal` module, where YAML files are loaded via `yaml.load()` instead of `yaml.safe_load()`. The deserialization of untrusted data may allow an unprivileged third party to cause remote code execution, denial of service, and impact to both confidentiality and integrity. Impacted versions: `>=0.4.0;<0.4.3`, `>=0.5.0;<0.5.2`. ### Patches The patches are included in `autogluon.multimodal==0.4.3`, `autogluon.multimodal==0.5.2` and Deep Learning Containers `0.4.3` and `0.5.2`. ### Workarounds Do not load data which originated from an untrusted source, or that could have been tampered with. **Only load data you trust.** ### References * https://cwe.mitre.org/data/definitions/502.html * https://www.cvedetails.com/cve/CVE-2017-18342/

GHSA-6h2x-4gjf-jc5w Affected Autogluon.multimodal Versions

2 component(s)
Fixed Versions:
0.4.30.5.2
Product / Package Ecosystem Affected Versions Fixed Version
autogluon.multimodal
PyPI
≥ 0.4.0
< 0.4.3
0.4.3
autogluon.multimodal
PyPI
≥ 0.5.0
< 0.5.2
0.5.2

References

Frequently Asked Questions

What is GHSA-6h2x-4gjf-jc5w?
GHSA-6h2x-4gjf-jc5w is a security vulnerability in Autogluon.multimodal involving autogluon.multimodal vulnerable to unsafe YAML deserialization under CWE-502: Deserialization of Untrusted Data.
Which Autogluon.multimodal versions are affected?
Affected versions include releases prior to 0.4.3, 0.5.2 across affected packages: autogluon.multimodal.
What version fixes GHSA-6h2x-4gjf-jc5w?
Upgrading to 0.4.3, 0.5.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is autogluon.multimodal affected?
Yes, autogluon.multimodal is affected in releases prior to 0.4.3, 0.5.2. Upgrade your dependency to 0.4.3, 0.5.2 or later.
What CWE is associated with GHSA-6h2x-4gjf-jc5w?
GHSA-6h2x-4gjf-jc5w is classified under CWE-502: Deserialization of Untrusted Data (The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.).
How can I check PyPI dependencies for GHSA-6h2x-4gjf-jc5w?
Run the dependency tree command: 'pip show autogluon.multimodal'. 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-6h2x-4gjf-jc5w",
  "modified" : "2022-09-21T21:42:05Z",
  "published" : "2022-09-21T21:42:05Z",
  "aliases" : [ ],
  "summary" : "autogluon.multimodal vulnerable to unsafe YAML deserialization",
  "details" : "### Impact\n\nA potential unsafe deserialization issue exists within the `autogluon.multimodal` module, where YAML files are loaded via `yaml.load()` instead of `yaml.safe_load()`. The deserialization of untrusted data may allow an unprivileged third party to cause remote code execution, denial of service, and impact to both confidentiality and integrity.\n\nImpacted versions: `>=0.4.0;<0.4.3`, `>=0.5.0;<0.5.2`.\n\n### Patches\nThe patches are included in `autogluon.multimodal==0.4.3`, `autogluon.multimodal==0.5.2` and Deep Learning Containers `0.4.3` and `0.5.2`.\n\n### Workarounds\nDo not load data which originated from an untrusted source, or that could have been tampered with. **Only load data you trust.**\n\n### References\n* https://cwe.mitre.org/data/definitions/502.html\n* https://www.cvedetails.com/cve/CVE-2017-18342/\n",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "autogluon.multimodal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.4.0"
      }, {
        "fixed" : "0.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "autogluon.multimodal"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.5.0"
      }, {
        "fixed" : "0.5.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/autogluon/security/advisories/GHSA-6h2x-4gjf-jc5w"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/autogluon/pull/1987"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/awslabs/autogluon/commit/23a37e74e58d03055c84a1b89c5af6c3db296b5e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/awslabs/autogluon"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-21T21:42:05Z",
    "nvd_published_at" : null
  }
}