CriticalCVE-2025-47812

    Wing FTP Server Improper Neutralization of Null Byte or NUL Character Vulnerability (CVE-2025-47812)

    Published In CISA KEV since Sources: pwn.watch, CVE.org

    Share

    What is affected, what to do

    In Wing FTP Server before 7.4.4. the user and admin web interfaces mishandle '\0' bytes, ultimately allowing injection of arbitrary Lua code into user session files. This can be used to execute arbitrary system commands with the privileges of the FTP service (root or SYSTEM by default).

    The vulnerability is being actively exploited; treat it as a priority. Update Wftpserver Wing FTP Server to version 7.4.4. Immediate actions, mitigation and detection rules are in the runbook below.

    Affected
    • Wftpserver Wing FTP Server lt *..7.4.4
    Fixed in
    • Wftpserver Wing FTP Server 7.4.4

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    10.0

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    10.0

    CVSS v3

    Severity Critical on the scale from 0 to 10.

    Source: pwn.watch, CVE.org

    93.9 %

    EPSS score

    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.

    Source: FIRST EPSS, percentile 99.84

    Show all metrics
    Severity
    Critical
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    239.48 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    actively exploitedSource: VulnCheck KEV (opens in a new tab) How we classify
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    10.0 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    10.0
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    93.9 %
    High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    99.84
    Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    Actively exploited
    Published
    In CISA KEV since

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    CISA assessment (SSVC)
    Exploitation: active · automatable · Technical impact: total
    Source: CISA Vulnrichment, as of 17 July 2025
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-158

    Response and mitigation

    Why act now?

    Prioritisation rationale

    This CVE is on KEV because it is network-reachable without authentication, triggerable through anonymous FTP accounts, and delivers RCE as root/SYSTEM — the combination of a working public PoC, a trivial payload (a single NUL byte in the login request) and the typical internet exposure of FTP deployments puts it among the CVEs most likely to be actively scanned right now. Typical target profiles include hosting providers, media and broadcast workflows, healthcare, and industrial organisations that use Wing FTP for partner file exchange. For NIS2-regulated organisations running an internet-facing Wing FTP instance this is a P0 incident — patch or take offline within 24 hours, not during the next maintenance window. Only internal-only instances behind VPN or a zero-trust proxy with anonymous login disabled can reasonably be de-escalated to P1 (72 hours).

    1. Runbook step 1

      Immediate response (0-24 h)

      • Upgrade Wing FTP Server to 7.4.4 or later immediately — this is the only complete fix for the NUL-byte injection in both the user and admin web interfaces.
      • Disable anonymous FTP accounts right away (admin console → Domain Settings → Anonymous Login = Off); the flaw is explicitly exploitable without valid credentials.
      • Remove web interfaces (default TCP/5466 HTTP, TCP/5467 HTTPS for the user UI, TCP/5466 for admin) from the public internet — restrict access to VPN or a management VLAN until patched.
      • Reconfigure the FTP service to run under a dedicated unprivileged account instead of root/SYSTEM to reduce blast radius during post-exploitation.
      • Forensically review the session directory (C:\Program Files (x86)\Wing FTP Server\Session\ or /usr/local/wftpserver/session/) for unexpected .lua files, modified session files, and child processes of the FTP service dating back to June 2025 — a public PoC exists and exploitation has been observed since July 2025.
      • Rotate all local FTP user passwords and admin credentials; where compromise is suspected, rebuild the host from scratch, as RCE as root/SYSTEM equals full takeover.
    2. Runbook step 2

      Mitigation layers

      • Network segmentation: move Wing FTP into an isolated DMZ zone, enforce egress filtering (no outbound traffic to the internet except explicitly required destinations), restrict admin UI access to a dedicated admin jump-host subnet.
      • Deploy a WAF or reverse proxy in front of the web UI and block requests containing %00, \x00 or raw null bytes in URL, parameters (notably the username field on /loginok.html) and POST bodies.
      • IPS signature: HTTP POST to /loginok.html or /login.html containing a URL-encoded NUL byte (%00) in the username field — fire high-severity alert and drop.
      • Filesystem hardening: mount the session directory noexec (Linux) or restrict ACLs so the FTP service account cannot load Lua modules; constrain the daemon with AppArmor or SELinux.
      • EDR rule: process creation of cmd.exe, powershell.exe, /bin/sh, /bin/bash with parent wftpserver.exe or wftpd as critical alert — the FTP service does not spawn shells under normal operation.
      • Protect the admin interface with an IP allowlist, MFA (where supported), and a non-default port; verify default admin credentials have been changed.
    3. Runbook step 3

      Detection rules

      • Web access logs: pattern POST /loginok.html with %00, \x00 or \0 in the username parameter — Sigma shape: selection: cs-uri-query|contains: '%00' AND cs-uri-stem|endswith: 'loginok.html'.
      • File monitoring (Sysmon EID 11 / auditd CREATE): new or modified .lua files under the session directory outside normal login flows; KQL: DeviceFileEvents | where FolderPath contains "wftpserver\\Session" and FileName endswith ".lua".
      • Process ancestry (Sysmon EID 1 / EDR): wftpserver.exe or hxxpd.exe as parent of cmd.exe, powershell.exe, wscript.exe, /bin/sh, curl, wget, nc — Splunk: index=edr parent_process_name IN ("wftpserver.exe","hxxpd.exe") process_name IN ("cmd.exe","powershell.exe","sh","bash").
      • Network telemetry (Zeek/Suricata): outbound connections from the FTP host to non-whitelisted destinations, especially reverse-shell ports (4444, 1337, 8080, 443 to unfamiliar destinations) or DNS lookups for Pastebin, Interact.sh or ngrok domains.
      • Windows event logs: EID 4688 with ParentImage matching Wing FTP and NewProcessName of any shell or scripting host; Linux auditd: type=EXECVE events whose ppid belongs to the FTP service.

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    In Wing FTP Server before 7.4.4. the user and admin web interfaces mishandle '\0' bytes, ultimately allowing injection of arbitrary Lua code into user session files. This can be used to execute arbitrary system commands with the privileges of the FTP service (root or SYSTEM by default). This is thus a remote code execution vulnerability that guarantees a total server compromise. This is also exploitable via anonymous FTP accounts.

    Source: pwn.watch, NVD (NIST), cvelistv5, CISA KEV Catalog, CVE.org (MITRE)

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    wftpserverWing FTP Server
    • < 7.4.4
    • 7.4.4
    wftpserverwing_ftp_server
    • < 7.4.4
    • 7.4.4

    Vendors and products

    Weakness classes (CWE)

    • CWE-158Improper Neutralization of Null Byte or NUL Character

      Variant

      The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes NUL characters or null bytes when they are sent to a downstream component.

      Entry at MITRE CWE-158

    Public exploit references

    Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.

    Public exploit references
    CISA KEV CatalogCISA Known Exploited Vulnerability (opens in a new tab)cisa.govactively exploited
    PoC-in-GitHub (nomi-sec)wingdata (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)CVE-2025-47812 (opens in a new tab)github.comPoC (publicly reported)reported, not verified

    References & sources

    • wftpserver.comProduct
    • rcesecurity.com2025/06/what-the-null-wing-ftp-server-rce-cve-2025-47812Exploit, Third-party advisory
    • vicarius.iovsociety/posts/cve-2025-47812-mitigation-script-remote-code-exe…Mitigation, Third-party advisory
    • vicarius.iovsociety/posts/cve-2025-47812-detection-script-remote-code-exec…Third-party advisory
    • huntress.comblog/wing-ftp-server-remote-code-execution-cve-2025-47812-explo…Third-party advisory, Exploit, Third-party advisory
    • cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2025-47812government-resource, US government resource
    • pwn.watchpwn.watch: Wing FTP Server: Improper Neutralization of Null Byte or NUL Character Vulnerabilitypwn-watch
    • wftpserver.comWing FTP Server advisory: Wing FTP Serverpwn-watch
    • NVD (NIST)NVD: CVE-2025-47812pwn-watch
    • cisa.govCISA Known Exploited Vulnerabilities Catalogpwn-watch
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2025-47812
    <a href="https://intel.neosec.eu/en/cve/CVE-2025-47812"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-47812.svg?lang=en" alt="CVE-2025-47812 – NEOSEC Intel" height="20"></a>