CVE-2004-0340: Stack-based buffer overflow in WFTPD Pro Server 3.21 Release 1, Pro Server 3.20 Release 2, Server 3.21 Release
CVE-2004-0340 is a high-severity flaw (CVSS 7.2) affecting wftpd. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Stack-based buffer overflow in WFTPD Pro Server 3.21 Release 1, Pro Server 3.20 Release 2, Server 3.21 Release 1, and Server 3.10 allows local users to execute arbitrary code via long (1) LIST, (2) NLST, or (3) STAT commands.
Why this priority
- High severity
- Public exploit reference
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 7.2 (High) |
| EPSS exploit chance | 1.3% (top 30%) |
| CISA exploited list | No |
| Published | 2004-11-23 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: WFTPD Server 3.21 - Remote Buffer Overflow
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2004-0340?
wftpd: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2004-0340 being exploited?
CVE-2004-0340 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2004-0340 affect?
CVE-2004-0340 affects wftpd. Severity is high (CVSS 7.2). Stack-based buffer overflow in WFTPD Pro Server 3.21 Release 1, Pro Server 3.20 Release 2, Server 3.21 Release 1, and Server 3.10 allows local users to execute arbitrary code via long (1) LIST, (2) NLST, or (3) STAT commands.
How urgent is CVE-2004-0340?
Priority 48/100. High severity; Public exploit reference
Related CVEs
- CVE-2023-33263 HIGH 7.5 DOWNGRADE In WFTPD 3.25, usernames and password hashes are stored in an openly viewable wftpd.ini configuration file wit
- CVE-2007-0311 MEDIUM 5.0 UPGRADE UPGRADE Texas Imperial Software WFTPD and WFTPD Pro Server 3.25 and earlier allow remote attackers to cause a denial o
- CVE-2006-5826 MEDIUM 5.8 DOWNGRADE Buffer overflow in Texas Imperial Software WFTPD Pro Server 3.23.1.1 allows remote authenticated users to exec
- CVE-2006-4318 MEDIUM 6.5 DOWNGRADE Buffer overflow in WFTPD Server 3.23 allows remote attackers to execute arbitrary code via long SIZE commands.
- CVE-2004-1642 MEDIUM 5.0 DOWNGRADE WFTPD Pro Server 3.21 allows remote authenticated users to cause a denial of service (crash) via a series of l