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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-22015-Serverless-Function-Environment-Variable-Injection-via-Event — PoC for CVE-2026-22015: malicious event injects environment variables into serverless functions, overwriting secrets and enabling privilege escalation. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-22015-serverless-function-environment-variable-injection-via-event
Privilege EscalationExploitationServerless SecurityCloud SecurityMisconfigurationLearning & Education
GitHubgeorge0papasotiriou/cve-2026-22015-serverless-function-environment-variable-injection-via-event

CVE-2026-22015-Serverless-Function-Environment-Variable-Injection-via-Event

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

PoC for CVE-2026-22015: malicious event injects environment variables into serverless functions, overwriting secrets and enabling privilege escalation.

View Repository
201 month agoNot yet reviewed

CVE-2026-22015 – Serverless Function Environment Variable Injection via Event

Program Code (Python Lambda sim)

# lambda_env_inject.py - Vulnerable function that reads env from event
import os, json

def handler(event, context):
    # The event contains environment variable overrides (debug feature)
    for key, value in event.get('env', {}).items():
        os.environ[key] = value
    return os.environ.get('SECRET', 'not set')

CVE-2026-22015 – Serverless Function Environment Variable Injection via Event

Severity: Critical

Overview

A serverless function trusts the incoming event to set environment variables, intended for debugging. An attacker can inject arbitrary environment variables, overriding secrets and altering the function’s behavior.

Vulnerability Details

  • Type: Injection / Privilege Escalation
  • Impact: Credential theft, logic corruption.
  • Root Cause: The function does not validate the source of the event; user‑controlled data merges into os.environ.

Exploit Demonstration

Run the function locally and invoke with the malicious event:

python lambda_env_inject.py

The secret is overwritten to "attacker_controlled".

Download Tool