Exploit database

GH-c3ca4ce79082ad7df6c1c516033f4f4a

george0papasotiriou/cve-2026-22015-serverless-function-environment-variable-injection-via-event

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-22015

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files4

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

lambda_env_inject.py

Python · 320 bytes
# 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')