CVE-2014-8998

X7 Chat <2.0.5.1 - Authenticated RCE

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2014-8998. PoCs published by Metasploit, including Metasploit module exploits/multi/http/x7chat2_php_exec.

AI-analyzed exploit summary This Metasploit module exploits a post-authentication PHP code execution vulnerability in X7 Chat 2.0.0 to 2.0.5.1 via the `preg_replace()` function with the `/e` modifier in `lib/message.php`. It sends a crafted message containing malicious PHP code, which is executed when the message is accessed.

Description

lib/message.php in X7 Chat 2.0.0 through 2.0.5.1 allows remote authenticated users to execute arbitrary PHP code via a crafted HTTP header to index.php, which is processed by the preg_replace function with the eval switch.

Exploits (2)

exploitdb WORKING POC VERIFIED
by Metasploit · rubyremotephp
https://www.exploit-db.com/exploits/35183

This Metasploit module exploits a post-authentication PHP code execution vulnerability in X7 Chat 2.0.0 to 2.0.5.1 via the `preg_replace()` function with the `/e` modifier in `lib/message.php`. It sends a crafted message containing malicious PHP code, which is executed when the message is accessed.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: X7 Chat 2.0.0 to 2.0.5.1
Auth required
Prerequisites: Valid credentials for X7 Chat · Access to the target's web interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
rubypocphp
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/x7chat2_php_exec.rb

This Metasploit module exploits a post-authentication PHP code execution vulnerability in X7 Chat 2.0.0 to 2.0.5.1 via the `preg_replace()` function with the `/e` modifier in `lib/message.php`. It leverages a crafted message containing a base64-encoded payload executed via HTTP header injection.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: X7 Chat 2.0.0 to 2.0.5.1
Auth required
Prerequisites: Valid credentials for X7 Chat · Access to the message center functionality
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Exploit exploit x_refsource_exploit-db
http://www.exploit-db.com/exploits/35183
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/71014
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/98513

Scores

EPSS 0.3683
EPSS Percentile 98.3%

Details

CWE
CWE-94
Status published
Products (10)
x7chat/x7_chat 2.0.0 (6 CPE variants)
x7chat/x7_chat 2.0.1 a1
x7chat/x7_chat 2.0.2
x7chat/x7_chat 2.0.3
x7chat/x7_chat 2.0.4
x7chat/x7_chat 2.0.4.1
x7chat/x7_chat 2.0.4.3
x7chat/x7_chat 2.0.4.4
x7chat/x7_chat 2.0.5
x7chat/x7_chat 2.0.5.1
Published Nov 20, 2014
Tracked Since Feb 18, 2026