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-123007 — Python PoC for CVE-2026-123007, an nginx HTTP/2 flow-control integer underflow (CWE-191) enabling heap corruption and worker RCE; includes version/HTTP2 detection and crash triggering. | Kitploit
Tools/GitHubGitHub/llcforge/cve-2026-123007
Web Vulnerability ScannersVulnerability AnalysisExploitationWeb SecurityNetwork SecurityContainer Escape
GitHubllcforge/cve-2026-123007

CVE-2026-123007

Python PoC for CVE-2026-123007, an nginx HTTP/2 flow-control integer underflow (CWE-191) enabling heap corruption and worker RCE; includes version/HTTP2 detection and crash triggering.

View Repository
19h 30m agoNot yet reviewed

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    593
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    371
  • 4

    redforge

    cybersecurity91/redforge

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

    336
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

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

    322

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-123007 -- NGINX HTTP/2 Flow Control Integer Underflow (NGINX2Root #1)

CVE CVSS CWE Language Status Author


Metadata

FieldValue
CVE IDCVE-2026-123007
VendorF5 / NGINX
Affected VersionsNGINX Open Source 1.9.5 – 1.31.8 (all HTTP/2-capable builds)
Fixed Version1.30.7 (stable) / 1.31.9 (mainline); NGINX Plus R37.0.8.1 / R37.3.0.1
AdvisoryF5 K000164058, 2026-11-18
CVSS 3.19.8 Critical (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
CWECWE-191 — Integer Underflow
Attack VectorNetwork (unauthenticated, requires HTTP/2 enabled on listener)
ImpactUnauthenticated RCE on NGINX worker process; root if chained with kernel SCTP bug
AliasNGINX2Root #1
Active ExploitationPoC public (Wiz, Xint research); no ITW exploitation confirmed as of 2026-11-20

Description

CVE-2026-123007 is an integer underflow in NGINX's HTTP/2 flow-control accounting (ngx_http_v2_module). When a client sends a stream-level WINDOW_UPDATE frame, NGINX decrements the per-stream send-window counter. Due to missing unsigned clamping on a signed 32-bit variable, an attacker can craft a sequence of WINDOW_UPDATE frames whose combined increment overflows the counter, causing the value to wrap negative and corrupt adjacent worker heap memory.

The vulnerability requires HTTP/2 to be enabled on a listener the attacker can reach — no authentication, no TLS client certificate, no prior session state. Wiz demonstrated unauthenticated RCE on a server hosting static files over HTTP/2 + TLS. Xint further chained CVE-2026-123007 with a Linux kernel SCTP bug to escape an NGINX Docker container and obtain root on the host.

Censys estimated 8.8 million NGINX services potentially exposed as of 2026-11-19. Roughly 66% of sampled HTTPS NGINX endpoints support HTTP/2. Exposure is version + HTTP/2 enabled + unpatched, not version alone.


Root Cause Deep Dive

ngx_http_v2_module/ngx_http_v2.c
────────────────────────────────
ngx_http_v2_window_update_frame(h2c, frame)
  stream = ngx_http_v2_get_stream(h2c, frame->stream_id)
  increment = ngx_http_v2_parse_window(frame->data)      // u32
  stream->send_window += (ngx_int_t)increment            // SECURITY FIX: CWE-191 -- signed += unsigned, no overflow check

  if stream->send_window < 0:
    // RFC 7540 §6.9.1: should send RST_STREAM FLOW_CONTROL_ERROR
    // BUG: check absent before 1.31.9 / 1.30.7 — counter goes negative,
    //      write path uses it as offset into heap-allocated stream buffer
StepWhat Happens
Client sends WINDOW_UPDATE with increment = 0x7FFFFFFFPer-stream window becomes 2^31-1
Client repeats with increment = 0x1Signed 32-bit overflows → negative
NGINX write path uses negative window as buffer sizeHeap write underflow → memory corruption
Worker heap corruptedAttacker-controlled bytes land at deterministic offset
Worker executes attacker payloadRCE as nginx / www-data

Vulnerable Code (NGINX ngx_http_v2.c)

/* ngx_http_v2.c -- ngx_http_v2_window_update_frame (NGINX <= 1.31.8) */
static ngx_int_t
ngx_http_v2_state_window_update(ngx_http_v2_connection_t *h2c,
    u_char *pos, u_char *end)
{
    uint32_t  window;
    /* ... */
    window = ngx_http_v2_parse_uint32(pos);

    /* SECURITY FIX: CWE-191 -- no RFC 7540 §6.9.1 overflow check before add */
    h2c->send_window += window;   /* signed + unsigned -- wraps on overflow */
    /* missing: if (h2c->send_window > NGX_HTTP_V2_MAX_WINDOW) RST_STREAM */
}

Attack Flow

flowchart LR
    A([Attacker]) -->|HTTP/2 SETTINGS + HEADERS\nstream_id=1| B[NGINX Worker\nngx_http_v2_module]
    B -->|stream allocated\nsend_window=65535| C[Stream State\nheap allocation]
    A -->|WINDOW_UPDATE 0x7FFFFFFF\n×2 rapid frames| B
    B -->|signed 32-bit overflow\nsend_window wraps negative| D{Heap Corruption\nadjacent object}
    D -->|write primitive| E[Worker Heap\narbitrary bytes]
    E -->|code execution| F([RCE as nginx worker])
    F -->|chain: SCTP kernel bug\nCVE-2026-SCTP-chain| G([Root on host])
    style A fill:#1a0810,color:#e94560
    style F fill:#1a0810,color:#e94560
    style G fill:#3d0015,color:#fff
    style D fill:#1a2010,color:#7ec8a0

PoC Usage

pip install -r requirements.txt

# Version / HTTP2 check only
python poc.py -u https://target.example.com --check-only -v

# Trigger flow-control underflow (crash detection)
python poc.py -u https://target.example.com -v

# Custom flood count and stream count
python poc.py -u https://target.example.com --flood-count 128 --streams 4 -v

# Via proxy
python poc.py -u https://target.example.com --proxy http://127.0.0.1:8080 --insecure -v

Flags

FlagDescription
-u / --urlTarget URL (must be HTTPS with HTTP/2 enabled)
--flood-countWINDOW_UPDATE frames per stream to send (default: 64)
--streamsConcurrent HTTP/2 streams to open (default: 2)
--check-onlyDetect HTTP/2 support and NGINX version without attack
--timeoutSocket timeout in seconds (default: 15)
--proxyHTTP/HTTPS proxy (Burp etc.)
--insecureSkip TLS certificate verification
-o / --outputSave results to JSON
-v / --verboseVerbose output

Impact

AreaImpact
AvailabilityCritical — worker crash / infinite loop
ConfidentialityCritical — memory disclosure, potential RCE
IntegrityCritical — arbitrary write primitive, RCE as nginx worker
Scope changeYes — Xint chain gives root via SCTP kernel escape
Auth requiredNone — network reachable HTTP/2 endpoint sufficient
Affected surface~8.8M exposed services (Censys, 2026-11-19)

Detection

MethodIndicator
nginx -vVersion 1.9.5 – 1.31.8 → potentially vulnerable
curl -I --http2 https://target/HTTP/2 handshake succeeds → precondition met
NGINX access logMultiple WINDOW_UPDATE anomalies from single IP in short window
Worker crash logsignal 11 (SIGSEGV) or signal 6 (SIGABRT) in nginx error.log
Censys / Shodanhttp.server.nginx.version:<1.30.7 + http2:true

Remediation

PriorityActionDetail
ImmediateUpgrade NGINX1.30.7 (stable) or 1.31.9 (mainline); NGINX Plus R37.0.8.1 / R37.3.0.1
InterimDisable HTTP/2listen 443 ssl; (remove http2 directive) — only covers CVE-2026-123007/-123633
HighRate-limit connectionslimit_conn + limit_req to reduce attack surface
HighMonitor worker crashesAlert on nginx worker SIGSEGV in error.log
MediumPin NGINX version in containersEnsure base images pull 1.30.7+

Disclaimer

Download Tool