Gallery save_photos.php PHP file upload

gallery-savephotos-file-upload (17021) The risk level is classified as MediumMedium Risk


Gallery could allow a remote attacker to upload malicious PHP files, caused by a vulnerability in the save_photos.php script. A remote attacker could upload a malicious PHP file, which would allow the attacker to execute code on the vulnerable Web server, once the file is opened.


Gain Access


For Gentoo Linux:
Upgrade to the latest version of gallery (1.4.4_p2 or later), as listed in GLSA 200409-05. See References.


  • Full-Disclosure Mailing List, Tue Aug 17 2004 - 11:23:57 CDT : Gallery 1.4.4 save_photos.php PHP Insertion Proof of Concept.
  • BID-10968: Gallery Remote Server-Side Script Execution Vulnerability
  • CVE-2004-1466: 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.
  • GLSA-200409-05: Gallery: Arbitrary command execution
  • OSVDB ID: 9019: Gallery save_photos.php Arbitrary Command Execution

Platforms Affected:

  • Gallery Gallery 1.4.4
  • Gentoo Linux


Aug 17, 2004

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page