CVE-2016-7998

HIGH

SPIP < 3.1.2 - Authenticated Remote Code Execution via Crafted INCLUDE/INCLURE Tag

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2016-7998. PoCs published by Sysdream, tnpitsecurity.

AI-analyzed exploit summary This exploit leverages improper sanitization in SPIP's template compiler to execute arbitrary PHP code via crafted INCLURE tags. The PoC demonstrates RCE by injecting a system command into a template file, which is then included and executed by the application.

Description

The SPIP template composer/compiler in SPIP 3.1.2 and earlier allows remote authenticated users to execute arbitrary PHP code by uploading an HTML file with a crafted (1) INCLUDE or (2) INCLURE tag and then accessing it with a valider_xml action.

Exploits (2)

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

This exploit leverages improper sanitization in SPIP's template compiler to execute arbitrary PHP code via crafted INCLURE tags. The PoC demonstrates RCE by injecting a system command into a template file, which is then included and executed by the application.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: SPIP <= 3.1.2
Auth required
Prerequisites: Authenticated access to SPIP · Ability to upload or reference a malicious template file
devstral-2 · analyzed Feb 16, 2026 Full analysis →
github WRITEUP 4 stars
by tnpitsecurity · poc
https://github.com/tnpitsecurity/CVEs/tree/master/CVE-2016-7998

The repository provides a detailed technical analysis of CVE-2016-7998, a PHP code execution vulnerability in SPIP's template compiler due to improper sanitization of INCLUDE/INCLURE tags. It includes a proof-of-concept explanation, vulnerable code snippets, and patch references.

Classification
Writeup 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: SPIP <= 3.1.2
Auth required
Prerequisites: authenticated user access · ability to upload a malicious .html file
devstral-2 · analyzed Feb 27, 2026 Full analysis →

References (8)

Core 8
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/93451
Issue Tracking, Patch, Vendor Advisory x_refsource_confirm
https://core.spip.net/projects/spip/repository/revisions/23189
Issue Tracking, Patch, Vendor Advisory x_refsource_confirm
https://core.spip.net/projects/spip/repository/revisions/23192
Issue Tracking, Patch, Vendor Advisory x_refsource_confirm
https://core.spip.net/projects/spip/repository/revisions/23186
Mailing List, Patch, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/10/07/5
Mailing List, Patch, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/10/08/6
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
http://www.openwall.com/lists/oss-security/2016/10/05/17

Scores

CVSS v3 8.8
EPSS 0.1365
EPSS Percentile 96.0%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-20
Status published
Products (1)
spip/spip < 3.1.2
Published Jan 18, 2017
Tracked Since Feb 18, 2026