CVE-2023-31143: Mage ai Mage-ai Missing User Authentication Vulnerability
HIGHCVE-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
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).
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.
pip install mage-ai>=0.8.72
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
CVE-2023-31143 Affected Mage ai Versions
1 component(s)| 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?
Which Mage ai versions are affected?
What version fixes CVE-2023-31143?
Is mage-ai affected?
What is the CVSS score of CVE-2023-31143?
What CWE is associated with CVE-2023-31143?
How can I check PyPI dependencies for CVE-2023-31143?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}