CVE-2003-1227

Gallery 1.4 and 1.4-pl1 - Remote Code Execution via GALLERY_BASEDIR Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2003-1227. PoCs published by peter.

AI-analyzed exploit summary This exploit leverages a remote file inclusion vulnerability in Gallery's index.php script by manipulating the GALLERY_BASEDIR parameter to include arbitrary PHP code from an attacker-controlled server. The vulnerability arises due to insufficient input validation.

Description

PHP remote file include vulnerability in index.php for Gallery 1.4 and 1.4-pl1, when running on Windows or in Configuration mode on Unix, allows remote attackers to inject arbitrary PHP code via a URL in the GALLERY_BASEDIR parameter, a different vulnerability than CVE-2002-1412. NOTE: this issue might be exploitable only during installation, or if the administrator has not run a security script after installation.

Exploits (1)

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

This exploit leverages a remote file inclusion vulnerability in Gallery's index.php script by manipulating the GALLERY_BASEDIR parameter to include arbitrary PHP code from an attacker-controlled server. The vulnerability arises due to insufficient input validation.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Gallery (version not specified)
No auth needed
Prerequisites: Remote PHP code hosted on an attacker-controlled server · Network access to the vulnerable Gallery instance
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/13419
Exploit, Patch vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/8814
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/341098
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/341094
Exploit, Patch, Vendor Advisory mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/341044

Scores

EPSS 0.0666
EPSS Percentile 93.1%

Details

CWE
CWE-94
Status published
Products (2)
gallery_project/gallery 1.4
gallery_project/gallery 1.4_pl1
Published Dec 31, 2003
Tracked Since Feb 18, 2026