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-22008-AWS-Lambda-Layer-Injection-via-Shared-Layer-ARN | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-22008-aws-lambda-layer-injection-via-shared-layer-arn
Cloud Infrastructure SecurityVulnerability AnalysisExploitationCloud SecuritySupply Chain SecurityPayload Development
GitHubgeorge0papasotiriou/cve-2026-22008-aws-lambda-layer-injection-via-shared-layer-arn

CVE-2026-22008-AWS-Lambda-Layer-Injection-via-Shared-Layer-ARN

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
15 days agoNot yet reviewed

CVE-2026-22008 – AWS Lambda Layer Injection via Shared Layer ARN

Program Code (Python)

root@kitploit:~
# deploy_vulnerable_lambda.py - Lambda function using a layer from untrusted account
import boto3
lambda_client = boto3.client('lambda')
# Attacker publishes a public layer containing malicious code
# Victim function references the layer ARN
response = lambda_client.create_function(
    FunctionName='victim-func',
    Runtime='python3.9',
    Role='arn:aws:iam::123456789012:role/lambda-role',
    Handler='index.handler',
    Code={'ZipFile': open('function.zip','rb').read()},
    Layers=['arn:aws:lambda:us-east-1:123456789012:layer:poisoned:1']  # public, but owned by attacker
)
print("Function created with malicious layer")

CVE-2026-22008 – AWS Lambda Layer Injection via Untrusted ARN

Severity: Critical

Overview

An AWS Lambda function includes a Lambda Layer from a publicly shared but untrusted ARN. The layer’s code runs inside the function’s execution environment, allowing the layer publisher to steal credentials, exfiltrate data, and execute arbitrary code.

Vulnerability Details

  • Type: Supply Chain / Code Injection
  • Impact: Full function compromise, credential theft.
  • Root Cause: Lambda layers are merged into the function’s code; no signature verification is required. A malicious layer owner can update the layer and affect all functions using it.

Exploit Demonstration

Deploy the victim function using the vulnerable script (requires AWS sandbox):

root@kitploit:~
python deploy_vulnerable_lambda.py

The layer’s handler is invoked on each request, phoning home.

Download Tool