Vulnerabilities in pkg:pypi/ai-flow

PACKAGE
Advisory Identifier: GHSA-7mgg-3rq2-hff4
Advisory Summary

CVE-2024-0960 is a MODERATE (CVSS 5.0) ai-flow deserialization of untrusted data vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Ai flow libraries in the PyPI ecosystem. The issue involves ai-flow deserialization of untrusted data vulnerability. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/ai-flow

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/ai-flow. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-7mgg-3rq2-hff4 CVE-2024-0960 MODERATE ai-flow Deserialization of Untrusted Data vulnerability

CVE-2024-0960 at a Glance

CVE Identifier CVE-2024-0960
GHSA Identifier GHSA-7mgg-3rq2-hff4
Severity MODERATE
CVSS v3.1 Base Score 5.0
CWE Classification CWE-502: Deserialization of Untrusted Data
Affected Product Ai flow
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.0

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

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

How to Fix CVE-2024-0960

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

ai-flow fixed: Latest secure release
pip install ai-flow>=Latest secure release
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 ai-flow

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2024-0960, inspect your installed packages using pip:

pip show ai-flow

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

Note: The pip show ai-flow 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 Ai flow, 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

A vulnerability was found in flink-extended ai-flow 0.3.1. It has been declared as critical. Affected by this vulnerability is the function cloudpickle.loads of the file `\ai_flow\cli\commands\workflow_command.py`. The manipulation leads to deserialization. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used. The identifier VDB-252205 was assigned to this vulnerability.

CVE-2024-0960 Affected Ai flow Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
ai-flow
PyPI
≤ 0.3.1

References

Frequently Asked Questions

What is CVE-2024-0960?
CVE-2024-0960 is a security vulnerability in Ai flow involving ai-flow Deserialization of Untrusted Data vulnerability under CWE-502: Deserialization of Untrusted Data.
Which Ai flow versions are affected?
Affected versions include releases prior to current release patches across affected packages: ai-flow.
What version fixes CVE-2024-0960?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is ai-flow affected?
Yes, ai-flow is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2024-0960?
CVE-2024-0960 has a CVSS v3.1 base score of 5.0 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L.
What CWE is associated with CVE-2024-0960?
CVE-2024-0960 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 CVE-2024-0960?
Run the dependency tree command: 'pip show ai-flow'. 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-7mgg-3rq2-hff4",
  "modified" : "2024-02-02T18:10:22Z",
  "published" : "2024-01-27T12:30:25Z",
  "aliases" : [ "CVE-2024-0960" ],
  "summary" : "ai-flow Deserialization of Untrusted Data vulnerability",
  "details" : "A vulnerability was found in flink-extended ai-flow 0.3.1. It has been declared as critical. Affected by this vulnerability is the function cloudpickle.loads of the file `\\ai_flow\\cli\\commands\\workflow_command.py`. The manipulation leads to deserialization. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. The exploit has been disclosed to the public and may be used. The identifier VDB-252205 was assigned to this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ai-flow"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.3.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-0960"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bayuncao/vul-cve-8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/bayuncao/vul-cve-8/blob/main/dataset.pkl"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/flink-extended/ai-flow"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?ctiid.252205"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/?id.252205"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-502" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-02T18:10:22Z",
    "nvd_published_at" : "2024-01-27T12:15:07Z"
  }
}