{"schemaVersion":3,"id":"CVE-2003-0466","aliases":["DSA-357"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2003-08-01T04:00:00.000Z","modified":"2024-08-08T01:58:10.161Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.78115,"percentile":0.99575,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.78115},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.78115,"percentile":0.99575}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.78115,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.78115,"percentile":0.99575}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_989D6B81844B2DE1","name":"Exploit Reference (securityfocus.com)","source":"reference","url":"http://www.securityfocus.com/bid/8315","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_9CBCEFD2073D07AB","name":"Exploit Reference (archives.neohapsis.com)","source":"reference","url":"http://archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"22976","name":"FreeBSD 4.8 - 'realpath()' Off-by-One Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/22976","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["freebsd"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"freebsd","file":"exploits/freebsd/remote/22976.pl","codes":["CVE-2003-0466","OSVDB-6602"]},"metasploit":null},{"id":"74","name":"WU-FTPD 2.6.2 - Off-by-One Remote Command Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/74","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"linux","file":"exploits/linux/remote/74.c","codes":["OSVDB-2133","CVE-2003-0466"]},"metasploit":null},{"id":"78","name":"WU-FTPD 2.6.2 - Remote Command Execution","source":"exploit-database","url":"https://www.exploit-db.com/exploits/78","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["linux"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"linux","file":"exploits/linux/remote/78.c","codes":["OSVDB-2133","CVE-2003-0466"]},"metasploit":null},{"id":"22975","name":"WU-FTPD 2.6.0/2.6.1/2.6.2 - 'realpath()' Off-by-One Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/22975","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["unix"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"unix","file":"exploits/unix/remote/22975.c","codes":["CVE-2003-0466","OSVDB-6602"]},"metasploit":null},{"id":"22974","name":"WU-FTPD 2.6.2 - 'realpath()' Off-by-One Buffer Overflow","source":"exploit-database","url":"https://www.exploit-db.com/exploits/22974","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"remote","platforms":["unix"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"remote","platform":"unix","file":"exploits/unix/remote/22974.c","codes":["CVE-2003-0466","OSVDB-6602"]},"metasploit":null}],"exploitCount":7,"weaknesses":[{"id":"CWE-193","name":"Off-by-one Error","description":"A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/193.html"}],"affected":[{"vendor":"apple","product":"mac_os_x","name":"mac os x","label":"mac_os_x","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.6","eol":null,"hubHref":"/vendor/apple/mac_os_x"},{"vendor":"apple","product":"mac_os_x_server","name":"mac os x server","label":"mac_os_x_server","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.2.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.2.6","eol":null,"hubHref":"/vendor/apple/mac_os_x_server"},{"vendor":"debian","product":"wu-ftpd","name":"wu-ftpd","label":"wu-ftpd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/wu-ftpd","purlType":"deb","versions":[{"text":"< 2.6.2-3woody1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.6.2-3woody1","eol":null,"hubHref":null},{"vendor":"freebsd","product":"freebsd","name":"FreeBSD","label":"freebsd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.0, ≤ 5.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0, ≤ 5.0","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"freebsd","label":"FreeBSD","category":"os"}},"hubHref":"/vendor/freebsd/freebsd"},{"vendor":"netbsd","product":"netbsd","name":"netbsd","label":"netbsd","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"≥ 1.5, ≤ 1.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.5, ≤ 1.6.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"netbsd","label":"NetBSD","category":"os"}},"hubHref":"/vendor/netbsd/netbsd"},{"vendor":"openbsd","product":"openbsd","name":"openbsd","label":"openbsd","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0, ≤ 3.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0, ≤ 3.3","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"openbsd","label":"OpenBSD","category":"os"}},"hubHref":"/vendor/openbsd/openbsd"},{"vendor":"redhat","product":"wu_ftpd","name":"wu ftpd","label":"wu_ftpd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.6.1-16","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.6.1-16","eol":null,"hubHref":"/vendor/redhat/wu_ftpd"},{"vendor":"sun","product":"solaris","name":"solaris","label":"solaris","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"9.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"9.0","eol":null,"hubHref":"/vendor/sun/solaris"},{"vendor":"wuftpd","product":"wu-ftpd","name":"wu-ftpd","label":"wu-ftpd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.5.0, ≤ 2.6.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.5.0, ≤ 2.6.2","eol":null,"hubHref":"/vendor/wuftpd/wu-ftpd"}],"affectedCount":9,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://marc.info/?l=bugtraq&m=106002488209129&w=2","label":"marc.info?l=bugtraq&m=106002488209129&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://isec.pl/vulnerabilities/isec-0011-wu-ftpd.txt","label":"isec.pl/vulnerabilities/isec-0011-wu-ftpd.txt","hostname":"isec.pl","tags":["X Refsource MISC","Broken Link"]},{"url":"http://secunia.com/advisories/9446","label":"secunia.com/advisories/9446","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Broken Link"]},{"url":"http://www.osvdb.org/6602","label":"www.osvdb.org/6602","hostname":"www.osvdb.org","tags":["VDB Entry","X Refsource OSVDB","Broken Link"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1970","label":"oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A1970","hostname":"oval.cisecurity.org","tags":["VDB Entry","Signature","X Refsource OVAL","Broken Link"]},{"url":"http://www.securityfocus.com/archive/1/424852/100/0/threaded","label":"www.securityfocus.com/archive/1/424852/100/0/threaded","hostname":"www.securityfocus.com","tags":["Mailing List","X Refsource BUGTRAQ","Broken Link","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/8315","label":"www.securityfocus.com/bid/8315","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Broken Link","Exploit","Patch","Third Party Advisory","Vendor Advisory"]},{"url":"http://secunia.com/advisories/9423","label":"secunia.com/advisories/9423","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Broken Link"]},{"url":"http://marc.info/?l=bugtraq&m=105967301604815&w=2","label":"marc.info?l=bugtraq&m=105967301604815&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html","label":"archives.neohapsis.com/archives/vulnwatch/2003-q3/0065.html","hostname":"archives.neohapsis.com","tags":["Mailing List","X Refsource VULNWATCH","Broken Link","Exploit","Vendor Advisory"]},{"url":"http://download.immunix.org/ImmunixOS/7+/Updates/errata/IMNX-2003-7+-019-01","label":"download.immunix.org/ImmunixOS/7+/Updates/errata/IMNX-2003-7+-019-01","hostname":"download.immunix.org","tags":["Vendor Advisory","X Refsource IMMUNIX","Broken Link"]},{"url":"http://www.redhat.com/support/errata/RHSA-2003-246.html","label":"www.redhat.com/support/errata/RHSA-2003-246.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"http://www.securityfocus.com/archive/1/425061/100/0/threaded","label":"www.securityfocus.com/archive/1/425061/100/0/threaded","hostname":"www.securityfocus.com","tags":["Mailing List","X Refsource BUGTRAQ","Broken Link","Third Party Advisory","VDB Entry"]},{"url":"http://www.kb.cert.org/vuls/id/743092","label":"www.kb.cert.org/vuls/id/743092","hostname":"www.kb.cert.org","tags":["Third Party Advisory","X Refsource CERT VN","US Government Resource"]},{"url":"http://www.redhat.com/support/errata/RHSA-2003-245.html","label":"www.redhat.com/support/errata/RHSA-2003-245.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Broken Link"]},{"url":"http://www.novell.com/linux/security/advisories/2003_032_wuftpd.html","label":"www.novell.com/linux/security/advisories/2003_032_wuftpd.html","hostname":"www.novell.com","tags":["Vendor Advisory","X Refsource SUSE","Broken Link"]},{"url":"http://sunsolve.sun.com/search/document.do?assetkey=1-77-1001257.1-1","label":"sunsolve.sun.com/search/document.do?assetkey=1-77-1001257.1-1","hostname":"sunsolve.sun.com","tags":["Vendor Advisory","X Refsource SUNALERT","Broken Link"]},{"url":"http://www.debian.org/security/2003/dsa-357","label":"www.debian.org/security/2003/dsa-357","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Broken Link"]},{"url":"http://marc.info/?l=bugtraq&m=106001702232325&w=2","label":"marc.info?l=bugtraq&m=106001702232325&w=2","hostname":"marc.info","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://securitytracker.com/id?1007380","label":"securitytracker.com/id?1007380","hostname":"securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK","Broken Link","Third Party Advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2003:080","label":"www.mandriva.com/security/advisories?name=MDKSA-2003:080","hostname":"www.mandriva.com","tags":["Vendor Advisory","X Refsource MANDRAKE","Third Party Advisory"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/12785","label":"exchange.xforce.ibmcloud.com/vulnerabilities/12785","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF","Third Party Advisory"]},{"url":"http://marc.info/?l=bugtraq&m=106001410028809&w=2","label":"marc.info?l=bugtraq&m=106001410028809&w=2","hostname":"marc.info","tags":["Vendor Advisory","X Refsource FREEBSD","Mailing List"]},{"url":"http://www.turbolinux.com/security/TLSA-2003-46.txt","label":"www.turbolinux.com/security/TLSA-2003-46.txt","hostname":"www.turbolinux.com","tags":["Vendor Advisory","X Refsource TURBO","Broken Link"]},{"url":"http://secunia.com/advisories/9535","label":"secunia.com/advisories/9535","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Broken Link"]},{"url":"http://secunia.com/advisories/9447","label":"secunia.com/advisories/9447","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA","Broken Link"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2003-08-01T04:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-08T01:58:10.161Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T02:54:19.142Z","stale":false,"partial":false}}