CVE-2002-1412

Gallery < 1.3.1 - Remote Code Execution via GALLERY_BASEDIR Manipulation

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2002-1412. PoCs published by PowerTech.

AI-analyzed exploit summary This exploit leverages a file inclusion vulnerability in Gallery by manipulating the 'GALLERY_BASEDIR' parameter to include arbitrary remote files. The attack is straightforward, requiring only a crafted URL to exploit the vulnerability.

Description

Gallery photo album package before 1.3.1 allows local and possibly remote attackers to execute arbitrary code via a modified GALLERY_BASEDIR variable that points to a directory or URL that contains a Trojan horse init.php script.

Exploits (1)

exploitdb WORKING POC VERIFIED
by PowerTech · textwebappsphp
https://www.exploit-db.com/exploits/21676

This exploit leverages a file inclusion vulnerability in Gallery by manipulating the 'GALLERY_BASEDIR' parameter to include arbitrary remote files. The attack is straightforward, requiring only a crafted URL to exploit the vulnerability.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Gallery (version not specified)
No auth needed
Prerequisites: Access to a remote server hosting malicious files · Network access to the vulnerable Gallery instance
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Patch, Vendor Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2002/dsa-138
Exploit, Patch, Vendor Advisory mailing-list x_refsource_bugtraq
http://archives.neohapsis.com/archives/bugtraq/2002-07/0471.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/5375
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/9737

Scores

EPSS 0.3950
EPSS Percentile 98.4%

Details

Status published
Products (1)
gallery_project/gallery < 1.3.1
Published Apr 11, 2003
Tracked Since Feb 18, 2026