Mage AI through 0.9.79 Arbitrary File Read via Unvalidated Path in browser_items Endpoint
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| mage-ai | mage-ai | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mage Ai | Mage Ai |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.481% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Mage Ai
Mage Ai mage Ai |
|
| Vendors & Products |
Mage Ai
Mage Ai mage Ai |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Mage AI does not confine the paths accepted by its browser-items API to the project directory. BrowserItemResource in mage_ai/api/resources/BrowserItemResource.py passes a caller-supplied path to the filesystem read and write helpers without calling the containment helper that the sibling FileContentResource and FileResource classes both use, so the resource contains no such call while those two contain several. A user holding the Viewer role, which grants read access within the project and nothing outside it, can therefore read any file the server process can read by supplying an absolute path. The permission model that would otherwise separate roles is not consulted for this route in the default configuration, because the setting that enables it defaults to false. Callers holding the Editor role additionally write through the same unconfined path, though that role is already able to execute code by design, so the boundary crossed by this flaw is the read available to the Viewer role. | |
| Title | Mage AI through 0.9.79 Arbitrary File Read via Unvalidated Path in browser_items Endpoint | |
| First Time appeared |
Mage
Mage mage-ai |
|
| Weaknesses | CWE-22 | |
| CPEs | cpe:2.3:a:mage:mage-ai:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Mage
Mage mage-ai |
|
| References |
|
|
| Metrics |
cvssV3_1
|