Exploit database

Vulnerability

CVE-2025-47812

Vulnerability details

Score
10.0
Severity
critical

CVSS 3.1 · mitre

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

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.

CVE Program

Exploit source choices

12 sources
Wing FTP Server NULL-byte Authentication Bypass (CVE-2025-47812)
MSF-multi--http--wingftp_null_byte_rceMetasploitLinux,Unix,Windows / remote

Wing FTP Server allows arbitrary Lua code injection via a NULL-byte (%00) truncation bug (CVE-2025-47812). Supplying <valid-user>%00<lua-payload> as the username makes the C++ authentication routine validate only the prefix, while the full string is written unfiltered into the session file and later executed with root/SYSTEM privileges, leading to Remote Code Execution.

2025-06-30wingftp_null_byte_rce.rb
Wing FTP Server Authenticated Command Execution
MSF-windows--ftp--wing_ftp_admin_execMetasploitWindows / remote

This module exploits the embedded Lua interpreter in the admin web interface for versions 3.0.0 and above. When supplying a specially crafted HTTP POST request an attacker can use os.execute() to execute arbitrary system commands on the target with SYSTEM privileges.

2014-06-19wing_ftp_admin_exec.rb
4m3rr0r/cve-2025-47812-poc
GH-3e860466e49d437f56e1df12d6ae3cc9GitHubUnofficial GitHub source

Wing FTP Server Remote Code Execution (RCE) Exploit (CVE-2025-47812)

2025-07-014 files · 53 stars
0xcan1337/cve-2025-47812-poc
GH-f969dd055aff31fc29b57cd2197b23feGitHubUnofficial GitHub source

Simple exploit for Wing FTP Server RCE (CVE-2025-47812) to run commands and get a reverse shell. For educational use only.

2025-07-014 files · 13 stars
0xgh057r3c0n/cve-2025-47812
GH-874a46399497300ee93d2750eabc63d2GitHubUnofficial GitHub source

Wing FTP Server RCE via Lua Injection

2025-07-024 files · 3 stars
r0otk3r/cve-2025-47812
GH-59784a788d737afdd8a274c2fd641f81GitHubUnofficial GitHub source

r0otk3r/cve-2025-47812 source repository

2025-07-272 files · 2 stars
shadowgit30/cve-2025-47812
GH-8d436df8ff358f1db298aeb2dbc47ac2GitHubUnofficial GitHub source

CVE-2025-47812 POC

2026-02-173 files · 2 stars
0xrevers3r/cve-2025-47812
GH-a742d4217481837321ab3358b168b10aGitHubUnofficial GitHub source

0xrevers3r/cve-2025-47812 source repository

2026-02-244 files · 1 stars
blindma1den/cve-2025-47812
GH-47a8306b2944cc10cb21ea5f1fb297b0GitHubUnofficial GitHub source

blindma1den/cve-2025-47812 source repository

2025-07-174 files · 1 stars
0xs4n4tg/cve-2025-47812
GH-68c74c05d151591cb3cd906222a63277GitHubUnofficial GitHub source

CVE-2025-47812 Poc for wingdata HTB

2026-05-243 files · 0 stars