{"api_version":"1","generated_at":"2026-07-23T11:29:14+00:00","cve":"CVE-2004-2640","urls":{"html":"https://cve.report/CVE-2004-2640","api":"https://cve.report/api/cve/CVE-2004-2640.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-2640","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-2640"},"summary":{"title":"CVE-2004-2640","description":"Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter.","state":"PUBLISHED","assigner":"mitre","published_at":"2004-12-31 05:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","baseScore":5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE"}}],"references":[{"url":"http://secunia.com/advisories/12963","name":"http://secunia.com/advisories/12963","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"Secunia - Advisories - LinuxStat \"template\" Directory Traversal Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/11517","name":"http://www.securityfocus.com/bid/11517","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch"],"title":"LinuxStat Remote Directory Traversal Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://sourceforge.net/project/shownotes.php?release_id=277371","name":"http://sourceforge.net/project/shownotes.php?release_id=277371","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"SourceForge.net: File Release Notes and Changelog","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"http://www.osvdb.org/11103","name":"http://www.osvdb.org/11103","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"-1","archivestatus":"0"},{"url":"http://securitytracker.com/id?1011920","name":"http://securitytracker.com/id?1011920","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"SecurityTracker.com Archives - LinuxStat Input Validation Flaw Lets Remote Users View Files on the Target System","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17833","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17833","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-2640","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-2640","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"0.90","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"0.94","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.0_beta","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.0_beta2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"2640","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ryszard_pydo","cpe5":"linuxstat","cpe6":"2.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T01:36:24.503Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"linuxstat-template-directory-traversal(17833)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17833"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://sourceforge.net/project/shownotes.php?release_id=277371"},{"name":"11517","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/11517"},{"name":"1011920","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://securitytracker.com/id?1011920"},{"name":"11103","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"],"url":"http://www.osvdb.org/11103"},{"name":"12963","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"],"url":"http://secunia.com/advisories/12963"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-10-25T00:00:00.000Z","descriptions":[{"lang":"en","value":"Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-07-19T15:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"linuxstat-template-directory-traversal(17833)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17833"},{"tags":["x_refsource_CONFIRM"],"url":"http://sourceforge.net/project/shownotes.php?release_id=277371"},{"name":"11517","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/11517"},{"name":"1011920","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://securitytracker.com/id?1011920"},{"name":"11103","tags":["vdb-entry","x_refsource_OSVDB"],"url":"http://www.osvdb.org/11103"},{"name":"12963","tags":["third-party-advisory","x_refsource_SECUNIA"],"url":"http://secunia.com/advisories/12963"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-2640","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"linuxstat-template-directory-traversal(17833)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17833"},{"name":"http://sourceforge.net/project/shownotes.php?release_id=277371","refsource":"CONFIRM","url":"http://sourceforge.net/project/shownotes.php?release_id=277371"},{"name":"11517","refsource":"BID","url":"http://www.securityfocus.com/bid/11517"},{"name":"1011920","refsource":"SECTRACK","url":"http://securitytracker.com/id?1011920"},{"name":"11103","refsource":"OSVDB","url":"http://www.osvdb.org/11103"},{"name":"12963","refsource":"SECUNIA","url":"http://secunia.com/advisories/12963"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-2640","datePublished":"2005-12-04T22:00:00.000Z","dateReserved":"2005-12-04T00:00:00.000Z","dateUpdated":"2024-08-08T01:36:24.503Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2004-12-31 05:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","baseScore":5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE"},"baseSeverity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:0.90:*:*:*:*:*:*:*","matchCriteriaId":"CA0BEDE0-7457-4CFC-BE15-41666E3FC7DD"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:0.94:*:*:*:*:*:*:*","matchCriteriaId":"43D570A0-2B02-450A-9CBA-CC092907F507"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.0:*:*:*:*:*:*:*","matchCriteriaId":"B08472E7-A49A-47C6-869E-73B93D279AE7"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.0_beta:*:*:*:*:*:*:*","matchCriteriaId":"45DAD623-D766-4DD4-8AEC-0F82888F51F3"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.0_beta2:*:*:*:*:*:*:*","matchCriteriaId":"2B582411-9B91-4934-A431-41C3DE634010"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.1:*:*:*:*:*:*:*","matchCriteriaId":"CB3BE0BD-19E4-44C9-9A56-8DFB81040797"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.2:*:*:*:*:*:*:*","matchCriteriaId":"D666A29D-0764-463F-A9F5-1863A97B00CD"},{"vulnerable":false,"criteria":"cpe:2.3:a:ryszard_pydo:linuxstat:2.3:*:*:*:*:*:*:*","matchCriteriaId":"A5F527EC-124E-420D-91D2-E4F43D71D0D8"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"2640","Ordinal":"1","Title":"CVE-2004-2640","CVE":"CVE-2004-2640","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"2640","Ordinal":"1","NoteData":"Directory traversal vulnerability in lstat.cgi in LinuxStat before 2.3.1 allows remote attackers to read arbitrary files via (1) .. (dot dot) sequences or (2) absolute paths to the template parameter.","Type":"Description","Title":"CVE-2004-2640"},{"CveYear":"2004","CveId":"2640","Ordinal":"2","NoteData":"2005-12-04","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"2640","Ordinal":"3","NoteData":"2017-07-19","Type":"Other","Title":"Modified"}]}}}