Cyber Resilience

CVE-2022-31061

SQLi in Glpi-Project Glpi 9.3.0 – 9.5.8

High EPSSSQLi
Published
28 June 2022
Modified
21 November 2024
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.51 99th percentile
Risk Priority 84 floored blend · peak EPSS

Summary

CVE-2022-31061 is a critical-severity SQL Injection (CWE-89) vulnerability in Glpi-Project Glpi. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 1% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SI-2 (Flaw Remediation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

GLPI, an open-source IT asset management and service desk platform, contains a SQL injection vulnerability (CWE-89) on its unauthenticated login page in affected versions. The flaw permits direct database manipulation without any credentials and carries a CVSS 3.1 score of 9.8, reflecting network-exploitable impact on confidentiality, integrity, and availability.

An attacker can submit crafted input through the login form to execute arbitrary SQL queries, potentially extracting sensitive data, modifying records, or gaining administrative control over the GLPI instance and its underlying database. No prior authentication or user interaction is required, making the issue remotely exploitable by any network-reachable adversary.

The project’s security advisory and associated commits instruct administrators to upgrade immediately to a patched release; no workarounds are documented. The referenced GitHub advisory (GHSA-w2gc-v2gm-q7wq) and fix commit (21ae07d) contain the remediation details.

EPSS for the CVE rose from a low post-disclosure baseline to a peak of 0.5177 in late 2025 before receding to the current value of 0.4591, indicating renewed exploitation interest well after the original 2022 publication.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing. In affected versions there is a SQL injection vulnerability which is possible on login page. No user credentials are…

more

required to exploit this vulnerability. Users are advised to upgrade as soon as possible. There are no known workarounds for this issue.

CWE(s)

Related Threats

Likely ATT&CK TechniquesAI

Techniques this vulnerability likely enables, inferred from its description, weakness type, and attributed-actor tradecraft. Confidence is per-technique.

T1190 Exploit Public-Facing Application Initial Accessconfidence: HIGH
Unauthenticated SQL injection on the login page directly enables remote exploitation of a public-facing web application.
T1005 Data from Local System Collectionconfidence: HIGH
Arbitrary SQL queries allow an attacker to extract sensitive data stored in the local database.
T1078 Valid Accounts Stealthconfidence: MEDIUM
Successful exploitation can grant administrative database access, enabling creation or use of valid accounts.
inferred from description + CWE · MITRE ATT&CK Enterprise v19.0

CVEs Like This One

CVE-2023-35924Same product: Glpi-Project Glpi
CVE-2024-27096Same product: Glpi-Project Glpi
CVE-2023-43813Same product: Glpi-Project Glpi
CVE-2023-37278Same product: Glpi-Project Glpi
CVE-2024-37148Same product: Glpi-Project Glpi
CVE-2024-29889Same product: Glpi-Project Glpi
CVE-2023-42461Same product: Glpi-Project Glpi
CVE-2023-36808Same product: Glpi-Project Glpi
CVE-2023-41320Same product: Glpi-Project Glpi
CVE-2023-46727Same product: Glpi-Project Glpi

Affected Assets

glpi-project
glpi
9.3.0 — 9.5.8 · 10.0.0 — 10.0.2

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SI-10 Information Input Validation
  • SI-2 Flaw Remediation
Detect
Catch it (NIST detect / respond)
  • SI-7 Software, Firmware, and Information Integrity
Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V6.2.5

Mitigating Controls (NIST 800-53 r5) AI

prevent

Mandatory validation/sanitization of all unauthenticated login-form inputs would have blocked the crafted SQL payloads that constitute the CVE-2022-31061 attack.

prevent

Requires prompt application of the vendor-supplied patch (the only remediation stated in the advisory) that eliminates the SQL-injection flaw on the login page.

detect

Integrity verification of the GLPI application code and configuration can detect unauthorized post-exploitation modifications resulting from successful SQL injection.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly target injection flaws during coding and review so largely prevent CWE-89 introduction, yet the single broad outcome leaves residual risk from incomplete neutralization techniques or missed edge cases.

PR.AT-02 partial match
prevents

Training raises developer awareness of SQLi risks and can reduce introduction likelihood (partial) but removes none of the actual coding flaw's risk by itself since technical neutralization is still required.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

detects

The same secure-coding and static-analysis activities surface missing neutralization of SQL metacharacters before the system is accepted.

prevents

Early warnings and shared best-practice information help organizations apply the latest remediation techniques against SQL-injection vulnerabilities.

prevents

Threat-intelligence feeds that surface new SQL-injection campaigns enable rapid updates to query-construction defenses and detection signatures before exploitation occurs.

prevents

Secure-coding rules and security testing phases mandate the use of parameterized queries or equivalent escaping, preventing the construction of dynamic SQL statements from untrusted input.

prevents

Language-specific secure coding rules, peer review and SAST together prevent the construction of SQL statements from untrusted data without proper parameterization or escaping.

References