CVE-2022-35914
About
/vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.
Rainforest analyst review
The vulnerable code is the bundled htmLawed test harness, specifically htmLawedTest.php shipped inside the htmlawed module of GLPI through 10.0.2. That test file passes request parameters into PHP in a way that lets an unauthenticated attacker inject and execute arbitrary PHP code simply by sending a crafted HTTP request to the exposed script. There is no authentication step and no user interaction, so reaching the endpoint is equivalent to running code as the web server user.
GLPI is a widely deployed open-source IT asset and service-management platform, so vulnerable instances tend to hold inventory data, ticketing, and often credentials for the environments they manage. The endpoint is a leftover test file that should never have been reachable in production, which is exactly the kind of artifact defenders forget is present. Public exploitation followed quickly and it has been folded into commodity scanning and cryptomining campaigns. Upgrade GLPI past 10.0.2, and if the instance was internet-facing, delete or block access to the htmLawed test script and check for web shells and unexpected PHP processes rather than assuming a patch closes the exposure retroactively.
References
- http://packetstormsecurity.com/files/169501/GLPI-10.0.2-Command-Injection.html
- http://www.bioinformatics.org/phplabware/sourceer/sourceer.php?&Sfs=htmLawedTest.php&Sl=.%2Finternal_utilities%2FhtmLawed
- https://github.com/Orange-Cyberdefense/CVE-repository/
- https://github.com/Orange-Cyberdefense/CVE-repository/blob/master/PoCs/POC_2022-35914.sh
- https://github.com/glpi-project/glpi/releases
- https://glpi-project.org/fr/glpi-10-0-3-disponible/
- https://mayfly277.github.io/posts/GLPI-htmlawed-CVE-2022-35914/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-35914
Related CVEs
Frequently asked questions
What is CVE-2022-35914?
/vendor/htmlawed/htmlawed/htmLawedTest.php in the htmlawed module for GLPI through 10.0.2 allows PHP code injection.
How severe is CVE-2022-35914?
CVE-2022-35914 carries a CVSS 3.1 base score of 9.8, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 99 out of 100, in the critical band.
How is CVE-2022-35914 exploited?
According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.
Which products are affected by CVE-2022-35914?
Public advisories list the following as affected: glpi. Check the references on this page for the exact versions each vendor confirms.
How do I fix CVE-2022-35914?
Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.
Empower Your Security Strategy with Rainforest
Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.
