Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-55459

CVE-2024-55459: Keras RCE Vulnerability

CVE-2024-55459 is a remote code execution flaw in Keras 3.7.0 that enables attackers to write arbitrary files via malicious tar downloads. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2024-55459 Overview

CVE-2024-55459 is an arbitrary file write vulnerability affecting Keras version 3.7.0. The vulnerability exists in the get_file function, which can be exploited by attackers to write arbitrary files to a user's machine by tricking them into downloading a crafted tar file. This vulnerability falls under CWE-494 (Download of Code Without Integrity Check), highlighting the lack of proper validation when processing downloaded archives.

Critical Impact

Attackers can leverage this vulnerability to write malicious files anywhere on the user's filesystem, potentially leading to code execution, data corruption, or system compromise through path traversal techniques embedded in malicious tar archives.

Affected Products

  • Keras 3.7.0
  • Applications using the get_file function to download and extract tar archives
  • Machine learning pipelines that automatically download model files or datasets

Discovery Timeline

  • January 8, 2025 - CVE-2024-55459 published to NVD
  • September 22, 2025 - Last updated in NVD database

Technical Details for CVE-2024-55459

Vulnerability Analysis

This arbitrary file write vulnerability stems from improper handling of tar archives within Keras's get_file function. The function is commonly used by machine learning practitioners to download pre-trained models, datasets, and other resources from remote sources. When processing tar archives, the function fails to properly sanitize file paths within the archive, allowing malicious archives to contain path traversal sequences that write files outside the intended extraction directory.

The attack requires user interaction, as the victim must be convinced to download and extract a crafted tar file using the vulnerable get_file function. Once executed, the malicious archive can write files to arbitrary locations on the filesystem, potentially overwriting critical system files or placing executable code in startup directories.

Root Cause

The root cause of this vulnerability is the absence of proper path validation when extracting files from tar archives. The get_file function does not verify that extracted file paths remain within the intended target directory. This allows crafted tar archives containing entries with path traversal sequences (such as ../../../etc/passwd or absolute paths) to escape the extraction directory and write files anywhere the user has write permissions.

This type of vulnerability, commonly known as a "Zip Slip" or "Tar Slip" attack, occurs when archive extraction routines trust the file paths provided within the archive without sanitization.

Attack Vector

The attack vector is network-based, requiring an attacker to deliver a malicious tar archive to the victim. Attack scenarios include:

The attacker hosts a malicious tar archive on a server and convinces the victim to use the get_file function to download it. This could be achieved through social engineering, typosquatting popular model repositories, or compromising legitimate model hosting services. Once the victim's application calls get_file with the malicious URL, the crafted archive is downloaded and extracted, writing files to attacker-controlled locations on the filesystem.

The malicious tar archive would contain entries with path traversal sequences designed to escape the extraction directory. For example, an entry named ../../../.bashrc would write to the user's home directory, potentially adding malicious commands to their shell configuration that execute on the next login.

Detection Methods for CVE-2024-55459

Indicators of Compromise

  • Unexpected files appearing in directories outside of Keras cache directories (typically ~/.keras/)
  • Modified system configuration files or startup scripts
  • Presence of files with suspicious names in home directories or system paths
  • Log entries showing get_file operations fetching resources from untrusted or unusual URLs

Detection Strategies

  • Monitor file system activity for writes to sensitive directories during Keras operations
  • Implement file integrity monitoring on critical system files and user profile configurations
  • Audit Keras get_file calls in application code to ensure only trusted sources are used
  • Review network logs for connections to suspicious or unrecognized model hosting services

Monitoring Recommendations

  • Enable file system auditing to track file creation events outside expected directories
  • Monitor the Keras cache directory (~/.keras/datasets/ and ~/.keras/models/) for unexpected activity
  • Implement network monitoring to detect downloads of tar files from untrusted sources
  • Set up alerts for modifications to shell configuration files and system startup scripts

How to Mitigate CVE-2024-55459

Immediate Actions Required

  • Audit all uses of the get_file function in your codebase to ensure only trusted URLs are used
  • Avoid downloading model files or datasets from untrusted or unverified sources
  • Consider implementing additional path validation before using get_file with user-controlled URLs
  • Monitor for updates to Keras that address this vulnerability

Patch Information

As of the last NVD update, users should monitor the Keras GitHub Repository and Keras Official Website for security patches addressing this vulnerability. The Notion Vulnerability Report provides additional technical details about the vulnerability.

Workarounds

  • Restrict get_file usage to only download from trusted, verified sources with integrity checks
  • Implement application-level path validation that verifies extracted file paths stay within the target directory
  • Use network-level controls to restrict which external hosts your application can download from
  • Consider using alternative file download mechanisms that include path sanitization
bash
# Example: Verify Keras version in your environment
pip show keras | grep Version

# Check for uses of get_file in your codebase
grep -r "get_file" --include="*.py" /path/to/your/project

# Restrict file permissions on sensitive directories
chmod 755 ~/.bashrc ~/.profile

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechKeras

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-494
  • Technical References
  • GitHub Keras Repository

  • Keras Official Website

  • Notion Vulnerability Report
  • Related CVEs
  • CVE-2026-1462: Keras Package RCE Vulnerability

  • CVE-2025-49655: Keras Framework RCE Vulnerability

  • CVE-2024-3660: Keras Framework RCE Vulnerability

  • CVE-2025-1550: Keras Model RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English