CVE-2004-1466

Gallery < 1.4.4_p2 - Remote Code Execution via Temporary Directory Script Upload

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2004-1466. PoCs published by aCiDBiTS.

AI-analyzed exploit summary This exploit targets a race condition in Gallery 1.4.4's `set_time_limit` function, allowing remote code execution by uploading a malicious PHP script disguised as an image. The script leverages a 30-second delay to execute arbitrary code before the file is verified and discarded.

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by aCiDBiTS · phpwebappsphp
https://www.exploit-db.com/exploits/24383

This exploit targets a race condition in Gallery 1.4.4's `set_time_limit` function, allowing remote code execution by uploading a malicious PHP script disguised as an image. The script leverages a 30-second delay to execute arbitrary code before the file is verified and discarded.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Racy
Target: Gallery 1.4.4
Auth required
Prerequisites: Access to a vulnerable Gallery instance · Valid session (PHPSESSID) · Write permissions in an album
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Exploit, Patch vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/10968
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/17021
Patch vendor-advisory x_refsource_gentoo
http://www.gentoo.org/security/en/glsa/glsa-200409-05.xml

Scores

EPSS 0.0523
EPSS Percentile 91.5%

Details

Status published
Products (1)
gallery_project/gallery 1.4.4
Published Dec 31, 2004
Tracked Since Feb 18, 2026