CVE-2023-46947
Description
Subrion 4.2.1 has a remote command execution vulnerability in the backend.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Subrion 4.2.1 backend remote command execution via sitemap generation hook allows authenticated admin to write webshell.
Subrion CMS version 4.2.1 contains a remote command execution vulnerability in the backend. The root cause is insufficient input validation in the sitemap generation hook, allowing authenticated users with administrative privileges to write arbitrary PHP code into website files. [1][2]
The attack requires backend access (admin credentials). After login, the attacker retrieves the server's absolute path via the System module's PHP info page. Then, in the Hooks section of the System module, they edit the 'sitemapGeneration' hook and inject a payload such as fputs(fopen('.../index.php','a+'),'@eval($_GET[cmd]);');. When the 'Generate Sitemap' function is executed, the malicious code is written into the website's homepage, and the subsequent syntax check triggers execution of the injected code. [2]
Successful exploitation grants the attacker arbitrary command execution on the server, effectively compromising the entire web application. This can lead to data theft, further lateral movement, or complete site takeover. [1][2]
As of the advisory, the vendor has not released a patch. The recommended mitigation is to apply strict input filtering on hook content and restrict admin access. Users should consider upgrading to a newer version if available, or implement web application firewall rules to block malicious payloads. [2]
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
intelliants/subrionPackagist | <= 4.2.1 | — |
Affected products
2- Subrion/Subriondescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-2x28-c7j7-23gvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-46947ghsaADVISORY
- github.com/intelliants/subrion/issues/909ghsaWEB
News mentions
0No linked articles in our index yet.