Vulnerabilities in pkg:pypi/mage-ai

PACKAGE
Advisory Identifier: GHSA-jg95-r9xh-xw9c
Advisory Summary

CVE-2024-45187 is a MODERATE (CVSS 7.1) mage ai incorrectly gives privileges vulnerability (CWE-613: Insufficient Session Expiration) affecting Mage ai libraries in the PyPI ecosystem. The issue involves mage ai incorrectly gives privileges to users with deleted accounts. Remediation is available in the latest vendor maintenance releases.

6 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/mage-ai

6 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-jg95-r9xh-xw9c CVE-2024-45187 MODERATE Mage AI incorrectly gives privileges to users with deleted accounts
GHSA-c6mm-2g84-v4m7 CVE-2023-31143 HIGH Mage-ai missing user authentication
GHSA-4mrc-w7jh-hx4j CVE-2024-45190 MODERATE Mage AI Path Traversal vulnerability
GHSA-cgxv-795x-3vqr CVE-2024-45189 MODERATE Mage AI Path Traversal vulnerability
GHSA-v9wr-8wrm-h6p7 CVE-2024-45188 MODERATE Mage AI Path Traversal vulnerability
GHSA-cgrq-wvfj-v28j CVE-2024-8072 MODERATE Mage AI allows remote unauthenticated attackers to leak the terminal server command history of arbitrary users

CVE-2024-45187 at a Glance

CVE Identifier CVE-2024-45187
GHSA Identifier GHSA-jg95-r9xh-xw9c
Severity MODERATE
CVSS v3.1 Base Score 7.1
CWE Classification CWE-613: Insufficient Session Expiration
Affected Product Mage ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

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:R/S:U/C:H/I:H/A:H).

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

How to Fix CVE-2024-45187

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

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

How to Check if You Are Affected

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

pip show mage-ai

Analyze the terminal output to locate any version of Mage ai 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 mage-ai command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-613: Insufficient Session Expiration, where according to wasc, "insufficient session expiration is when a web site permits an attacker to reuse old session credentials or session ids for authorization.". In Mage ai, 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

Guest users in the Mage AI framework that remain logged in after their accounts are deleted, are mistakenly given high privileges and specifically given access to remotely execute arbitrary code through the Mage AI terminal server.

CVE-2024-45187 Affected Mage ai Versions

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

References

Frequently Asked Questions

What is CVE-2024-45187?
CVE-2024-45187 is a security vulnerability in Mage ai involving Mage AI incorrectly gives privileges to users with deleted accounts under CWE-613: Insufficient Session Expiration.
Which Mage ai versions are affected?
Affected versions include releases prior to current release patches across affected packages: mage-ai.
What version fixes CVE-2024-45187?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is mage-ai affected?
Yes, mage-ai 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-45187?
CVE-2024-45187 has a CVSS v3.1 base score of 7.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-45187?
CVE-2024-45187 is classified under CWE-613: Insufficient Session Expiration (According to WASC, "Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization.").
How can I check PyPI dependencies for CVE-2024-45187?
Run the dependency tree command: 'pip show mage-ai'. 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-jg95-r9xh-xw9c",
  "modified" : "2025-10-13T15:45:48Z",
  "published" : "2024-08-23T21:30:42Z",
  "aliases" : [ "CVE-2024-45187" ],
  "summary" : "Mage AI incorrectly gives privileges to users with deleted accounts",
  "details" : "Guest users in the Mage AI framework that remain logged in after their accounts are deleted, are mistakenly given high privileges and specifically given access to remotely execute arbitrary code through the Mage AI terminal server.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mage-ai"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.9.73"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-45187"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mage-ai/mage-ai"
  }, {
    "type" : "WEB",
    "url" : "https://research.jfrog.com/vulnerabilities/mage-ai-deleted-users-rce-jfsa-2024-001039602"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266", "CWE-613" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-23T22:51:28Z",
    "nvd_published_at" : "2024-08-23T19:15:07Z"
  }
}