CVE-2024-45187
Python vulnerability analysis and mitigation

Overview

Guest users in the Mage AI framework that remain logged in after their accounts are deleted are mistakenly given high privileges, specifically allowing access to remotely execute arbitrary code through the Mage AI terminal server. The vulnerability (CVE-2024-45187) was discovered in August 2024 and received a CVSS score of 7.1 (HIGH) (JFrog Research).

Technical details

The vulnerability exists in the terminal_server.py file where the code checks API key authentication and user tokens. The issue occurs because the valid variable is set to True before verifying if there is a user associated with the token. When a user is deleted, their authentication token remains cached in the database with a default 30-day expiration period. If a deleted low-privileged user reuses their authentication token, they can gain unauthorized access to the Mage Web Terminal and execute arbitrary commands on the server hosting Mage.AI (Hacker News).

Impact

The vulnerability allows deleted users to gain unauthorized shell access with root permissions, enabling them to execute arbitrary commands on the Mage.AI server. This access could lead to full system compromise, including unauthorized access to ML pipelines, datasets, and model training systems. Since MLOps pipelines may have access to the organization's ML Datasets, ML Model Training, and ML Model Publishing, exploiting this vulnerability can result in severe breaches including data theft and ML model manipulation (JFrog Blog).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 09, 2025
CVE-2025-66645HIGH7.5
  • PythonPython
  • nicegui
NoYesDec 09, 2025
GHSA-9rwj-6rc7-p77cHIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 10, 2025
CVE-2025-67502MEDIUM5.4
  • PythonPython
  • taguette
NoYesDec 10, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management