CVE Professor
/
All CVEs
CVE-2026-138718

CVE-2026-138718 — CWE-120 · CWE-787

CRITICAL CVSS 10 NVD

A stack-based buffer overflow vulnerability in the POP3 proxy inspection driver in WatchGuard Endpoint Security allows a remote attacker able to influence a monitored POP3 session to corrupt kernel worker-thread stack memory by sending a POP3 TOP command with overly long arguments. Successful exploitation could crash the system or potentially lead to arbitrary code execution in kernel mode.

A stack-based buffer overflow vulnerability in the POP3 proxy inspection driver in WatchGuard Endpoint Security allows a remote attacker able to influence a monitored POP3 session to corrupt kernel worker-thread stack memory by sending a POP3 TOP command with overly long arguments. Successful exploitation could crash the system or potentially lead to arbitrary code execution in kernel mode.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. High SC:H
Subseq. Integ. High SI:H
Subseq. Avail. High SA:H
Scope X S:X
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
The WatchGuard Endpoint Security product ships a kernel‑mode driver that implements a POP3 proxy inspection engine. When a POP3 client issues the TOP command, the driver copies the command’s arguments into a fixed‑size stack buffer without performing any bounds checking. The driver assumes that the argument length will never exceed the buffer size, but an attacker can send an arbitrarily long argument string.

Because the copy is performed in kernel mode, the overflow corrupts the worker‑thread stack frame. The overwritten return address or function pointer can be redirected to attacker‑controlled data, allowing the attacker to execute arbitrary code with kernel privileges.

CWE mapping

  • CWE‑120 – Stack-based Buffer Overflow

  • CWE‑787 – Out‑of‑Bounds Write
  • CVSS 4.0

  • Attack Vector: Network (AV:N) – the attacker only needs to reach the POP3 port.

  • Attack Complexity: Low (AC:L) – no special conditions.

  • Privileges Required: None (PR:N) – the exploit runs in kernel mode.

  • User Interaction: None (UI:N) – the victim need not interact.

  • Impact: High on Confidentiality, Integrity, Availability, and all sub‑metrics (VC, VI, VA, SC, SI, SA).
  • The result is a remote, unauthenticated, kernel‑mode code execution that can crash the system or give the attacker full control.


    ⚡ Attack Chain

    Below is a realistic, step‑by‑step chain that an adversary could follow. All commands are syntactically valid; the payload shown is illustrative – the exact shellcode or ROP chain would depend on the target kernel version.

    1. Discovery & Reconnaissance

    StepTechniqueTool / CommandWhat it reveals
    1Port scannmap -p 110 <target>Detects POP3 service.
    2Banner grabnmap -sV -p 110 <target>Reveals “WatchGuard Endpoint Security POP3 Proxy” and version number.
    3Version fingerprinttelnet <target> 110 → +OK WatchGuard Endpoint Security POP3 Proxy vX.Y.ZConfirms vulnerable product and exact build.

    If the banner is suppressed, the attacker can still probe the POP3 service by sending a NOOP command and observing the response format.

    2. Exploitation

    The core of the exploit is a single TOP command with an oversized argument. The driver copies the argument into a 256‑byte buffer; we send 1 024 bytes to guarantee overflow.

    # Connect to the POP3 server
    nc <target> 110
    
    # POP3 handshake
    USER testuser
    PASS testpass
    
    # Craft the malicious TOP command
    TOP 1 $(printf 'A%.0s' {1..1024})   # 1024 'A's
    
    # End session
    QUIT

    Explanation of the payload

  • TOP 1 – the message number (any valid number).
  • $(printf 'A%.0s' {1..1024}) – expands to 1 024 ‘A’ characters, far exceeding the 256‑byte buffer.
  • The driver will copy the entire string onto the stack, overwriting the saved return address and other control data.
  • Kernel‑mode ROP / shellcode
    In practice, the attacker would replace the trailing bytes of the payload with a ROP chain or a small kernel‑mode shellcode that, for example, spawns a privileged shell, installs a rootkit, or simply triggers a KeBugCheck to crash the system. The exact bytes depend on the kernel version and the available gadgets.

    3. Post‑exploitation

    Once the kernel stack is corrupted and the attacker’s code runs:

    1. Privilege Escalation – The code already runs with kernel privileges; the attacker can now:
    - Create a new SYSTEM user.
    - Install a persistent backdoor (e.g., a kernel driver or a user‑mode service).
    - Dump system secrets (SAM, LSA secrets, etc.).

    2. Persistence – The attacker can write a malicious driver to disk and load it on boot, or modify the registry to launch a user‑mode process with elevated rights.

    3. Data Exfiltration – With SYSTEM privileges, the attacker can read any file, capture network traffic, or exfiltrate credentials.

    4. Denial of Service – Even if the attacker chooses not to execute code, the overflow can trigger a kernel panic, causing the host to reboot or become unusable.


    🌍 Real World Impact

    ImpactCVSS 4.0 Sub‑MetricEffect
    ConfidentialityVC:HFull read/write access to all data on the system.
    IntegrityVI:HAbility to modify any file, registry key, or kernel data.
    AvailabilityVA:HSystem crash or forced reboot.
    ScopeSC:HThe vulnerability changes the scope from the driver to the entire kernel.
    Impact on UsersSI:HAll users on the affected host are compromised.
    Impact on SystemSA:HSystem becomes a pivot point for further attacks.

    Practical consequences

  • In a corporate network, an attacker could compromise a single endpoint and then pivot to other machines, exfiltrate corporate secrets, or deploy ransomware.
  • In a critical infrastructure environment, the crash could disrupt services, leading to financial loss and regulatory penalties.
  • Because the vulnerability is kernel‑mode, traditional antivirus or endpoint protection may not detect it until after exploitation.

🛡️ Remediation & Mitigation

Affected Versions

ProductAffected Version(s)Fixed Version
WatchGuard Endpoint Security10.0.0 – 10.3.510.3.6+ (recommended)

The vendor has released a patch in the 10.3.6 build that adds bounds checking to the POP3 TOP command handler.

Patch / Upgrade

1. Immediate – Apply the vendor’s security update (10.3.6 or later).
2. Long‑term – Upgrade to the latest major release (currently 11.x) which removes the POP3 proxy inspection module entirely.

Workarounds (if patching is not immediately possible)

MitigationHow to Implement
Disable POP3 proxy inspectionIn the WatchGuard console, navigate to *Endpoint Security → POP3 Proxy* and toggle *Enable Inspection* to *Off*.
Block POP3 trafficConfigure the perimeter firewall to drop or redirect traffic on port 110 (and 995 for POP3S).
Restrict POP3 accessUse ACLs to allow POP3 only from trusted IP ranges (e.g., corporate VPN).
Apply a WAF ruleIf a WAF is in place, add a rule that rejects POP3 TOP commands with payload length > 256 bytes. Example (ModSecurity syntax):<br>SecRule REQUEST_HEADERS:POP3_COMMAND "@beginsWith TOP" "phase:2,deny,status:400,msg:'POP3 TOP overflow attempt'"

Detection

IndicatorLog Pattern / IoC
Repeated TOP commands with long argumentsTOP 1 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999..High – indicates a malicious TOP command was sent.
Kernel panic / oopspanic: BUG: unable to handle kernel NULL pointer dereferenceIndicates a stack corruption.
System rebootsystemd[1]: Stopping ...Denotes a crash.

IOC Summary

TypeExample
IP192.168.1.42 (internal endpoint)
Port110
CommandTOP 1 <very long string>

| File | `/var/log/watchguard/

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-120 CWE-787
References & Advisories (1)
Related CVEs
9.2
CVE-2026-144499
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOf_decode template in StgC
9.2
CVE-2026-144500
ASN1SCC before 4.7.0.1 contains a buffer overflow vulnerability in Xer_DecodePrimitiveElement() in asn1crt/asn
8.1
CVE-2026-92728
A heap out-of-bounds write flaw was found in GRUB2's DNS response parser. In recv_hook() (grub-core/net/dns.c)
7.3
CVE-2026-129782
Out-of-bounds write in the zwlr_virtual_pointer_v1 protocol implementation of Hyprland for Linux, versions 0.5
7.2
CVE-2026-145314
A heap out-of-bounds write exists in the MPEG-1/2 video decoder (libavcodec/mpeg12dec.c) in FFmpeg before 6.1.
6.3
CVE-2026-144889
A vulnerability was detected in vgmstream r2117. Affected by this vulnerability is the function vgmstream_tags
4.3
CVE-2026-144891
A vulnerability has been found in vgmstream up to r2117. This affects the function acb_cat of the file src/met