CVE-2023-31143: Mage ai Mage-ai Missing User Authentication Vulnerability

HIGH
Advisory Identifier: GHSA-c6mm-2g84-v4m7
CVSS 5.9
CWE-306
Published
Advisory Summary

CVE-2023-31143 is a HIGH (CVSS 5.9) mage-ai missing user authentication vulnerability (CWE-306: Missing Authentication for Critical Function) affecting Mage ai libraries in the PyPI ecosystem. The issue involves mage-ai missing user authentication. Remediation is available by upgrading affected packages to version 0.8.72.

CVE-2023-31143 at a Glance

CVE Identifier CVE-2023-31143
GHSA Identifier GHSA-c6mm-2g84-v4m7
Severity HIGH
CVSS v3.1 Base Score 5.9
CWE Classification CWE-306: Missing Authentication for Critical Function
Affected Product Mage ai
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 5.9

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

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

How to Fix CVE-2023-31143

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: 0.8.72
pip install mage-ai>=0.8.72
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-2023-31143, 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 0.8.72), 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-306: Missing Authentication for Critical Function, where the product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources. 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

### Impact You may be impacted if you're using Mage with user authentication enabled. The terminal could be accessed by users who are not signed in or do not have editor permissions. ### Patches The vulnerability has been resolved in Mage version 0.8.72.

CVE-2023-31143 Affected Mage ai Versions

1 component(s)
Fixed Versions:
0.8.72
Product / Package Ecosystem Affected Versions Fixed Version
mage-ai
PyPI
≥ 0.8.34
< 0.8.72
0.8.72

References

Frequently Asked Questions

What is CVE-2023-31143?
CVE-2023-31143 is a security vulnerability in Mage ai involving Mage-ai missing user authentication under CWE-306: Missing Authentication for Critical Function.
Which Mage ai versions are affected?
Affected versions include releases prior to 0.8.72 across affected packages: mage-ai.
What version fixes CVE-2023-31143?
Upgrading to 0.8.72 (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 0.8.72. Upgrade your dependency to 0.8.72 or later.
What is the CVSS score of CVE-2023-31143?
CVE-2023-31143 has a CVSS v3.1 base score of 5.9 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2023-31143?
CVE-2023-31143 is classified under CWE-306: Missing Authentication for Critical Function (The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.).
How can I check PyPI dependencies for CVE-2023-31143?
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-c6mm-2g84-v4m7",
  "modified" : "2024-09-30T16:51:20Z",
  "published" : "2023-05-05T23:10:44Z",
  "aliases" : [ "CVE-2023-31143" ],
  "summary" : "Mage-ai missing user authentication",
  "details" : "### Impact\n\nYou may be impacted if you're using Mage with user authentication enabled. The terminal could be accessed by users who are not signed in or do not have editor permissions.\n\n### Patches\n\nThe vulnerability has been resolved in Mage version 0.8.72.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mage-ai"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.8.34"
      }, {
        "fixed" : "0.8.72"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/mage-ai/mage-ai/security/advisories/GHSA-c6mm-2g84-v4m7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-31143"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mage-ai/mage-ai/commit/f63cd00f6a3be372397d37a4c9a49bfaf50d7650"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mage-ai/mage-ai"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mage-ai/PYSEC-2023-64.yaml"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-306" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-05-05T23:10:44Z",
    "nvd_published_at" : "2023-05-09T15:15:10Z"
  }
}