CVE-2008-0138

XOOPS mod_gallery - Remote File Inclusion via GALLERY_BASEDIR Parameter

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2008-0138. PoCs published by Eugene Minaev.

AI-analyzed exploit summary This exploit leverages a remote file inclusion (RFI) vulnerability in XOOPS mod_gallery due to insecure use of `extract()` on user-controlled input, bypassing a flawed security fix. The PoC demonstrates how to inject a malicious `GALLERY_BASEDIR` parameter to include a remote shell.

Description

PHP remote file inclusion vulnerability in xoopsgallery/init_basic.php in the mod_gallery module for XOOPS, when register_globals is disabled, allows remote attackers to execute arbitrary PHP code via a URL in the GALLERY_BASEDIR parameter.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Eugene Minaev · textwebappsphp
https://www.exploit-db.com/exploits/4847

This exploit leverages a remote file inclusion (RFI) vulnerability in XOOPS mod_gallery due to insecure use of `extract()` on user-controlled input, bypassing a flawed security fix. The PoC demonstrates how to inject a malicious `GALLERY_BASEDIR` parameter to include a remote shell.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: XOOPS mod_gallery (version not specified)
No auth needed
Prerequisites: register_globals = OFF · PHP environment vulnerable to RFI
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (3)

Core 3
Core References
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4847
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/27155
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/39461

Scores

EPSS 0.0478
EPSS Percentile 90.8%

Details

CWE
CWE-89
Status published
Products (1)
xoops/xoopsgallery_module 1.3.3_9
Published Jan 08, 2008
Tracked Since Feb 18, 2026