← Vulnerability feed

Vulnerability record · CVE-2003-0466 · published 27 August 2003

CVE-2003-0466: wu-ftpd fb_realpath off-by-one buffer overflow enables remote code execution

Redhat · Wu Ftpd

An off-by-one error in the fb_realpath() function, derived from the BSD realpath implementation, causes a buffer overflow when a pathname of length MAXPATHLEN+1 is processed. In wu-ftpd 2.5.0 through 2.6.2 this is reachable through FTP commands such as STOR, RETR, APPE, DELE, MKD, RMD, STOU and RNTO. The flaw matters because it is remotely reachable without authentication and can lead to arbitrary code execution on the FTP server.

9.8 CVSS 3.1 Critical EPSS 78% · top 0.4% CWE-193 · CWE-193
9.8CVSS 3.1 base score, v2 10.0
78%EPSS exploitation probability, 30 days
NoNot in CISA KEV
8Affected product versions listed by NVD
54References, 4 tagged exploit
16 Jun 2026Last modified by NVD

Description

Off-by-one error in the fb_realpath() function, as derived from the realpath function in BSD, may allow attackers to execute arbitrary code, as demonstrated in wu-ftpd 2.5.0 through 2.6.2 via commands that cause pathnames of length MAXPATHLEN+1 to trigger a buffer overflow, including (1) STOR, (2) RETR, (3) APPE, (4) DELE, (5) MKD, (6) RMD, (7) STOU, or (8) RNTO.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

critical priorityCVSS 9.8 with no authentication or interaction required, very high EPSS, and public exploit references make this a critical remote code execution risk on unpatched wu-ftpd.

What it is

An off-by-one error in the fb_realpath() function, derived from the BSD realpath implementation, causes a buffer overflow when a pathname of length MAXPATHLEN+1 is processed. In wu-ftpd 2.5.0 through 2.6.2 this is reachable through FTP commands such as STOR, RETR, APPE, DELE, MKD, RMD, STOU and RNTO. The flaw matters because it is remotely reachable without authentication and can lead to arbitrary code execution on the FTP server.

Impact

A remote attacker can overflow the buffer and execute arbitrary code with the privileges of the FTP service, typically root on wu-ftpd deployments. This gives full control of the host rather than just file access.

Attack surface

Reached over the network through the FTP service by sending commands containing an overlong pathname; the CVSS vector shows no privileges or user interaction required. Any client able to connect to the FTP port can attempt it.

Exploitation

Not listed in CISA KEV, but EPSS is very high (0.781, 99.55th percentile) and multiple references carry Exploit tags, indicating public exploit material exists. No ransomware group usage is documented in the record.

What to do

  • Apply the vendor patch or upgrade wu-ftpd to a fixed release; Red Hat, Debian, Mandriva, Novell, Sun and BSD advisories in the references list fixes.
  • If wu-ftpd cannot be patched, disable or restrict the FTP service and block port 21 from untrusted networks.
  • Replace wu-ftpd with a maintained FTP daemon that is not affected by this fb_realpath flaw.
  • Run the FTP service with least privilege and in a confined environment so a successful overflow does not yield root.
  • Monitor vendor advisories for the affected BSD and Solaris platforms, which share the derived realpath code.

Detection

  • Inspect FTP server logs for commands (STOR, RETR, APPE, DELE, MKD, RMD, STOU, RNTO) containing pathnames near or above MAXPATHLEN length.
  • Alert on FTP sessions that send unusually long path arguments or malformed command sequences.
  • Watch for crashes or restarts of the FTP daemon, which can indicate a failed overflow attempt.
  • Monitor for unexpected child processes or outbound connections spawned by the FTP service.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

8 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2003-011.txt.asc Broken Link
http://archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html Broken LinkExploitVendor Advisory
http://download.immunix.org/ImmunixOS/7+/Updates/errata/IMNX-2003-7+-019-01 Broken Link
http://isec.pl/vulnerabilities/isec-0011-wu-ftpd.txt Broken Link
http://marc.info/?l=bugtraq&m=105967301604815&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106001410028809&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106001702232325&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106002488209129&w=2 Mailing List
http://secunia.com/advisories/9423 Broken Link
http://secunia.com/advisories/9446 Broken Link
http://secunia.com/advisories/9447 Broken Link
http://secunia.com/advisories/9535 Broken Link
http://securitytracker.com/id?1007380 Broken LinkThird Party AdvisoryVDB Entry
http://sunsolve.sun.com/search/document.do?assetkey=1-77-1001257.1-1 Broken Link
http://www.debian.org/security/2003/dsa-357 Broken Link
http://www.kb.cert.org/vuls/id/743092 Third Party AdvisoryUS Government Resource
http://www.mandriva.com/security/advisories?name=MDKSA-2003:080 Third Party Advisory
http://www.novell.com/linux/security/advisories/2003_032_wuftpd.html Broken Link
http://www.osvdb.org/6602 Broken Link
http://www.redhat.com/support/errata/RHSA-2003-245.html Broken Link
http://www.redhat.com/support/errata/RHSA-2003-246.html Broken Link
http://www.securityfocus.com/archive/1/424852/100/0/threaded Broken LinkThird Party AdvisoryVDB Entry
http://www.securityfocus.com/archive/1/425061/100/0/threaded Broken LinkThird Party AdvisoryVDB Entry
http://www.securityfocus.com/bid/8315 Broken LinkExploitPatchThird Party AdvisoryVDB EntryVendor Advisory
http://www.turbolinux.com/security/TLSA-2003-46.txt Broken Link
https://exchange.xforce.ibmcloud.com/vulnerabilities/12785 Third Party AdvisoryVDB Entry
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1970 Broken Link
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2003-011.txt.asc Broken Link
http://archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html Broken LinkExploitVendor Advisory
http://download.immunix.org/ImmunixOS/7+/Updates/errata/IMNX-2003-7+-019-01 Broken Link
http://isec.pl/vulnerabilities/isec-0011-wu-ftpd.txt Broken Link
http://marc.info/?l=bugtraq&m=105967301604815&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106001410028809&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106001702232325&w=2 Mailing List
http://marc.info/?l=bugtraq&m=106002488209129&w=2 Mailing List
http://secunia.com/advisories/9423 Broken Link
http://secunia.com/advisories/9446 Broken Link
http://secunia.com/advisories/9447 Broken Link
http://secunia.com/advisories/9535 Broken Link
http://securitytracker.com/id?1007380 Broken LinkThird Party AdvisoryVDB Entry

Track CVE-2003-0466 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2014-7169GNU Bash environment variable function parsing command injection (Shellshock variant)GNU Bash through 4.3 bash43-025 processes trailing strings after malformed function definitions in environment variable values, allowing command inje…KEVEPSS 100%analysed9.8CVE-2014-6271GNU Bash environment variable command injection (ShellShock)GNU Bash through 4.3 processes trailing strings after function definitions in environment variable values, allowing injected commands to run when Bas…KEVEPSS 100%analysed9.8CVE-2012-1823PHP-CGI query string option injection enables remote code executionPHP versions before 5.3.12 and 5.4.x before 5.4.2, when run as a CGI script (php-cgi), mishandle query strings that lack an equals sign, allowing com…KEVEPSS 100%analysed8.8CVE-2022-2294Google Chrome WebRTC heap buffer overflow via crafted HTML pageCVE-2022-2294 is a heap buffer overflow in the WebRTC component of Google Chrome prior to 103.0.5060.114. A remote attacker can trigger heap corrupti…KEVEPSS 70%analysed8.8CVE-2021-1789Apple WebKit type confusion allows code execution via crafted web contentA type confusion flaw in Apple's WebKit engine was fixed through improved state handling across macOS, iOS, iPadOS, tvOS, watchOS and Safari. Process…KEVEPSS 14%analysed7.8CVE-2021-30713Apple macOS privacy preference bypass via missing authorizationmacOS Big Sur before 11.4 has a permissions validation flaw (CWE-862 missing authorization) that lets a malicious application bypass Privacy preferen…KEVEPSS 7.0%analysed

Source: NIST National Vulnerability Database (record CVE-2003-0466), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.