# CVE-2022-35914: Teclib GLPI Remote Code Execution

> An attacker can inject and execute arbitrary PHP code via the htmlawed module in GLPI, potentially compromising the server.

- **Severity:** Critical 9.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Yes, since 7 Mar 2023 (CISA KEV)
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 19 Sep 2022
- **Updated:** 21 Oct 2025

## What is CVE-2022-35914?

CVE-2022-35914 is a critical code injection vulnerability in Glpi-Project Glpi, published on 19 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

/vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.

Weakness: CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component)

## Which versions are affected by CVE-2022-35914?

It affects 1 product.


Products: Glpi-Project Glpi.

## How do I fix CVE-2022-35914?

No fix has been published for CVE-2022-35914 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 28 Mar 2023.

## Is CVE-2022-35914 being exploited?

Yes. Attackers have exploited CVE-2022-35914 in the wild since at least 7 Mar 2023.

Public exploit code:

- https://github.com/cosad3s/CVE-2022-35914-poc (github_poc): https://github.com/cosad3s/CVE-2022-35914-poc
- PoC exploit for GLPI - Command injection using a third-party library script (github_poc): https://github.com/senderend/CVE-2022-35914
- https://github.com/Lzer0Kx01/CVE-2022-35914 (github_poc): https://github.com/Lzer0Kx01/CVE-2022-35914
- Unauthenticated RCE in GLPI 10.0.2 (github_poc): https://github.com/0xGabe/CVE-2022-35914
- Modified for GLPI Offsec Lab: call_user_func, array_map, passthru (github_poc): https://github.com/noxlumens/CVE-2022-35914_poc
- https://github.com/6E6L6F/CVE-2022-35914 (github_poc): https://github.com/6E6L6F/CVE-2022-35914

## Other vulnerabilities in Glpi-Project Glpi

- [CVE-2023-42802](https://insights.sbomify.com/CVE-2023-42802/): GLPI vulnerable to unallowed PHP script execution (critical 10.0)
- [CVE-2023-28849](https://insights.sbomify.com/CVE-2023-28849/): GLPI vulnerable to SQL injection and Stored XSS via inventory agent request (critical 10.0)
- [CVE-2022-35947](https://insights.sbomify.com/CVE-2022-35947/): SQL injection in GLPI (critical 10.0)
- [CVE-2022-31056](https://insights.sbomify.com/CVE-2022-31056/): SQL injection with _actor parameter in GLPI (critical 9.8)
- [CVE-2022-31061](https://insights.sbomify.com/CVE-2022-31061/): SQL injection on login page in GLPI (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2022-35914 and fix it if it is affected.

What it is: CVE-2022-35914 is a critical code injection vulnerability in Glpi-Project Glpi, published on 19 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: Yes. Attackers have exploited CVE-2022-35914 in the wild since at least 7 Mar 2023.

Affected product: Glpi-Project Glpi. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2022-35914/ (Markdown: https://insights.sbomify.com/CVE-2022-35914/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2022-35914
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2022-35914
- OSV: https://osv.dev/vulnerability/CVE-2022-35914

---
From sbomify Insights: https://insights.sbomify.com/CVE-2022-35914/
Summaries are generated and may contain mistakes; the official description above is the record.
