CVE-2004-0340 in Texas Imperial Software Wftpd
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Texas Imperial Software | Wftpd | 3.0 3.0_0r3 3.0_0r4 3.0_0r5 3.10_r1 3.20+4 more3.21 pro_3.10_r1 pro_3.20 pro_3.21 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2004-0340 |
|---|---|
| BreachSpider ID | BS-2004-GLOBAL-173045-H |
| CVSS vector | AV:L/AC:L/Au:N/C:C/I:C/A:C |
| Published | 2004-11-23 |
| Last modified | 2026-04-16 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A stack-based buffer overflow vulnerability exists in WFTPD Pro Server versions 3.21 Release 1, 3.20 Release 2, and 3.10, allowing local users to execute arbitrary code through long LIST, NLST, or STAT commands.
The vulnerability is triggered by sending overly long arguments to the LIST, NLST, or STAT commands to the WFTPD Pro Server. This can lead to a buffer overflow, potentially allowing an attacker to execute arbitrary code with the privileges of the server process.
Questions
What is CVE-2004-0340?
A stack-based buffer overflow vulnerability exists in WFTPD Pro Server versions 3.21 Release 1, 3.20 Release 2, and 3.10, allowing local users to execute arbitrary code through long LIST, NLST, or STAT commands.
What is the CVSS score for CVE-2004-0340?
CVE-2004-0340 has CVSS 7.2 (High). Vector: AV:L/AC:L/Au:N/C:C/I:C/A:C. EPSS: 1.3%.
Is CVE-2004-0340 actively exploited?
Public exploit available for CVE-2004-0340. Exploitation risk elevated.
How do I remediate CVE-2004-0340?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2004-0340?
CVE-2004-0340 affects Texas Imperial Software Wftpd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Texas Imperial Software","product":"Wftpd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-04-16.