{"api_version":"1","generated_at":"2026-07-23T06:41:34+00:00","cve":"CVE-2004-1466","urls":{"html":"https://cve.report/CVE-2004-1466","api":"https://cve.report/api/cve/CVE-2004-1466.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-1466","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-1466"},"summary":{"title":"CVE-2004-1466","description":"The set_time_limit function in Gallery before 1.4.4_p2 deletes non-image files in a temporary directory every 30 seconds after they have been uploaded using save_photos.php, which allows remote attackers to upload and execute execute arbitrary scripts before they are deleted, if the temporary directory is under the web root.","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":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml","name":"http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"Gentoo Linux Documentation\n--\n  Gallery: Arbitrary command execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17021","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17021","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/10968","name":"http://www.securityfocus.com/bid/10968","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Patch"],"title":"Gallery Remote Server-Side Script Execution Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html","name":"http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"],"title":"Neohapsis Archives - Full Disclosure List - #0757 - [Full-Disclosure] Gallery 1.4.4 save_photos.php PHP Insertion Proof of Concept","mime":"text/html","httpstatus":"-1","archivestatus":"200"},{"url":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0","name":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"Gallery 1.4.4-pl1 is now Available! | Gallery","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1466","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1466","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":"1466","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"gallery_project","cpe5":"gallery","cpe6":"1.4.4","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-08T00:53:23.809Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"10968","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/10968"},{"name":"gallery-savephotos-file-upload(17021)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17021"},{"name":"20040817 Gallery 1.4.4 save_photos.php PHP Insertion Proof of Concept","tags":["mailing-list","x_refsource_FULLDISC","x_transferred"],"url":"http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html"},{"name":"GLSA-200409-05","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml"},{"tags":["x_refsource_CONFIRM","x_transferred"],"url":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-08-17T00:00:00.000Z","descriptions":[{"lang":"en","value":"The set_time_limit function in Gallery before 1.4.4_p2 deletes non-image files in a temporary directory every 30 seconds after they have been uploaded using save_photos.php, which allows remote attackers to upload and execute execute arbitrary scripts before they are deleted, if the temporary directory is under the web root."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-07-10T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"10968","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/10968"},{"name":"gallery-savephotos-file-upload(17021)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17021"},{"name":"20040817 Gallery 1.4.4 save_photos.php PHP Insertion Proof of Concept","tags":["mailing-list","x_refsource_FULLDISC"],"url":"http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html"},{"name":"GLSA-200409-05","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml"},{"tags":["x_refsource_CONFIRM"],"url":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-1466","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":"The set_time_limit function in Gallery before 1.4.4_p2 deletes non-image files in a temporary directory every 30 seconds after they have been uploaded using save_photos.php, which allows remote attackers to upload and execute execute arbitrary scripts before they are deleted, if the temporary directory is under the web root."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"10968","refsource":"BID","url":"http://www.securityfocus.com/bid/10968"},{"name":"gallery-savephotos-file-upload(17021)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/17021"},{"name":"20040817 Gallery 1.4.4 save_photos.php PHP Insertion Proof of Concept","refsource":"FULLDISC","url":"http://archives.neohapsis.com/archives/fulldisclosure/2004-08/0757.html"},{"name":"GLSA-200409-05","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml"},{"name":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0","refsource":"CONFIRM","url":"http://gallery.menalto.com/modules.php?op=modload&name=News&file=article&sid=134&mode=thread&order=0&thold=0"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-1466","datePublished":"2005-02-13T05:00:00.000Z","dateReserved":"2005-02-13T00:00:00.000Z","dateUpdated":"2024-08-08T00:53:23.809Z","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:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gallery_project:gallery:1.4.4:*:*:*:*:*:*:*","matchCriteriaId":"92EB48F8-9018-4BD1-8B68-BC4012676260"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"1466","Ordinal":"1","Title":"CVE-2004-1466","CVE":"CVE-2004-1466","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"1466","Ordinal":"1","NoteData":"The set_time_limit function in Gallery before 1.4.4_p2 deletes non-image files in a temporary directory every 30 seconds after they have been uploaded using save_photos.php, which allows remote attackers to upload and execute execute arbitrary scripts before they are deleted, if the temporary directory is under the web root.","Type":"Description","Title":"CVE-2004-1466"},{"CveYear":"2004","CveId":"1466","Ordinal":"2","NoteData":"2005-02-13","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"1466","Ordinal":"3","NoteData":"2017-07-10","Type":"Other","Title":"Modified"}]}}}