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-113425 — Docker-based proof-of-concept lab for CVE-2026-113425, a use-after-free in the nginx mail proxy triggered by a timed TCP RST during IMAP authentication, causing worker crashes. | Kitploit
Tools/GitHubGitHub/llcforge/cve-2026-113425
Vulnerability AnalysisExploitationWeb SecurityNetwork SecurityLabs & Practice
GitHubllcforge/cve-2026-113425

CVE-2026-113425

Docker-based proof-of-concept lab for CVE-2026-113425, a use-after-free in the nginx mail proxy triggered by a timed TCP RST during IMAP authentication, causing worker crashes.

View Repository
3 days 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.

    994
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    422
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    389
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    333
  • 6

    ARTEX

    baarai/artex

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

    330

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-113425

nginx — Mail Proxy Use-After-Free via TCP RST

CVSS CWE Language Fixed Disclosed


Overview

A use-after-free in nginx's mail proxy module (ngx_mail_proxy_module) is triggered when a client sends a TCP RST at a precisely timed moment during the IMAP authentication flow. The freed shared session context is subsequently dereferenced by the upstream handler, crashing the worker.

FieldValue
CVECVE-2026-113425
CVSS 3.17.5 High — AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWECWE-416 (Use After Free)
Componentngx_mail_proxy_module
Affectednginx 0.5.33 – 1.31.8
Fixednginx 1.30.7 / 1.31.9
Auth RequiredNone
Disclosed2026-11-18

Vulnerability Details

When nginx proxies a mail client to an upstream IMAP/SMTP/POP3 server it allocates a session context shared between the downstream and upstream event handlers. If the client sends a TCP RST via SO_LINGER with l_linger = 0 at the right moment — after the upstream connection is established but before nginx has finished tearing down the session — the client-side handler frees the shared context while the upstream handler still holds a pointer to it. Subsequent upstream events dereference the freed memory.

Lab layout:

client (poc.py)  →  nginx:1.31.8 mail proxy  →  imapd:143 (fake IMAP, holds LOGIN for 20s)
                           ↑ auth_http → authd:9000 (always OK)

Attack Flow

flowchart LR
    A([Attacker]) -->|TCP connect :143\nIMAP greeting| B[nginx mail proxy\n1.31.8]
    B -->|proxy to upstream\nIMAPD| C[Fake IMAP\nHolds LOGIN 20s]
    A -->|TCP RST via SO_LINGER\nat LOGIN hold window| B
    B -->|client handler frees\nshared session context| D{UAF}
    D -->|upstream event\ndereferences freed ptr| E[Worker SIGSEGV\nDoS]

    style A fill:#3d1a1a,stroke:#f85149,color:#f85149
    style E fill:#1a1f2e,stroke:#f85149,color:#f85149

PoC Usage

Warning: Docker Compose lab environment only. Never run against production mail servers.

Setup

docker compose up --build -d
sleep 3

Default mode — RST inside the 20-second LOGIN hold window

python3 poc.py

Expected output — vulnerable nginx:

[+] SIGSEGV detected in nginx worker — USE-AFTER-FREE CONFIRMED
docker compose logs -f nginx

RST timing variants

# RST immediately after receiving the IMAP greeting
python3 poc.py --mode after-greeting

# RST after sending LOGIN command, before response
python3 poc.py --mode mid-login

# RST 500ms into the 20-second hold window (default)
python3 poc.py --mode after-auth

# Stress test: 50 parallel connections with mixed RST timings
python3 poc.py --mode burst --count 50

Available flags

FlagDescription
--mode after-greeting|mid-login|after-auth|burstRST timing (default: after-auth)
--count NNumber of connections for burst mode
--host HOSTnginx host (default: 127.0.0.1)
--port PORTIMAP port (default: 143)

RST timing reference

ModeRST timing
after-greetingImmediately after * OK received
mid-loginAfter LOGIN sent, before response
after-auth500 ms into the 20-second hold window
burstMany parallel connections, mixed timings

Monitor for crashes

docker compose logs -f nginx
# Look for: "worker process <pid> exited on signal 11"

Expected output — patched build

# Patch the Dockerfile
sed -i 's/nginx:1.31.8/nginx:1.31.9/' nginx/Dockerfile
docker compose build --no-cache nginx && docker compose up -d
python3 poc.py --mode after-auth
# nginx handles RST cleanly, logs: "connection reset by peer"

Detection

IndicatorNotes
nginx worker crash (signal 11)nginx error.log: "worker process exited on signal 11"
Repeated worker restarts under low trafficMaster process respawning workers after IMAP auth attempts
Connections with SO_LINGER=0 to mail portNetwork-level detection of TCP RST during IMAP LOGIN

Impact

Unauthenticated remote Denial of Service. One crafted connection per nginx worker crashes that worker. With worker_processes N, N connections are needed to fully deny service. No memory corruption in the typical case — restart recovers the service.


Remediation

Upgrade to nginx 1.30.7 (stable) or nginx 1.31.9 (mainline). The fix ensures the session context lifetime is properly tracked across both the client and upstream handlers.

ActionDetail
Upgrade nginx1.30.7 (stable) or 1.31.9 (mainline)
Monitor worker restartsAlert on repeated signal 11 from nginx workers
Rate-limit IMAP connectionsLimit connections per IP at the firewall

References

  • nginx Security Advisories: https://nginx.org/en/security_advisories.html
  • CWE-416: https://cwe.mitre.org/data/definitions/416.html
  • CVE Record: https://www.cve.org/CVERecord?id=CVE-2026-113425

Disclaimer: For authorized security research and controlled lab use only. MIT License.

Download Tool