Vulnerability Assessment & Network Security Forums
If through a vulnerability assessment, a network security issue is detected for the vulnerability below, applying the appropriate security patches in a timely matter is very important. If you have detected that your system has already been compromised, following CERT's Network Security recovery document will assist with recommended steps for system recovery.
Vulnerability Assessment Details
Gallery: Arbitrary command execution
Detailed Explanation for this Vulnerability Assessment
The remote host is affected by the vulnerability described in GLSA-200409-05
(Gallery: Arbitrary command execution)
The upload handling code in Gallery places uploaded files in a temporary
directory. After 30 seconds, these files are deleted if they are not valid
images. However, since the file exists for 30 seconds, a carefully crafted
script could be initiated by the remote attacker during this 30 second
timeout. Note that the temporary directory has to be located inside the
webroot and a possible hacker needs to have upload rights either as an
authenticated user or via "EVERYBODY".
A possible hacker could run arbitrary code as the user running PHP.
There are several workarounds to this vulnerability:
Make sure that your temporary directory is not contained in the
by default it is located outside the webroot.
Disable upload rights to all albums for "EVERYBODY"
is disabled by default.
Disable debug and dev mode
these settings are disabled by
Disable permit_url_fopen in php.ini.
All Gallery users should upgrade to the latest version:
# emerge sync
# emerge -pv ">=www-apps/gallery-1.4.4_p2"
# emerge ">=www-apps/gallery-1.4.4_p2"
Network Security Threat Level: Medium
Networks Security ID:
Vulnerability Assessment Copyright: (C) 2005 Michel Arboi
|SIEMENS 7366100615: C/T CPU Memory Carrier Board Dual Processors RM600E
|120MM Large Air Flow 4 Pin Interface DC 12V Chassis Fan CPU Cooling Fan Cooler~T
|Intel Xeon X5690 3.46GHz Six Core (BX80614X5690) Processor
|AMD Ryzen 7 1700X 8 Core 16Threads Socket AM4 95W 3.4GHz 3.8Ghz 4MB Processor
No Discussions have been posted on this vulnerability.