Technical impact
A flaw in the Mobile Site Directory component of dayrui XunRuiCMS allows an attacker to supply a specially crafted dirname argument to the PHP str_replace function, resulting in arbitrary code injection. The vulnerability is a classic code injection weakness (CWE-94) that can be triggered remotely via web requests, giving the attacker the ability to execute PHP code on the server with the privileges of the web application. This can compromise confidentiality, integrity, and availability of the hosted site and its underlying services.
Affected Systems
All installations of dayrui XunRuiCMS version 4.7.4 and earlier are affected. The vulnerability resides in the index.php file located at /var/www/html/zzmob/, part of the Mobile Site Directory feature used to display content on mobile devices.
Risk and Exploitability
The CVSS score of 6.9 indicates a moderate severity vulnerability. No EPSS score is available, but an exploit has already been released publicly, indicating a tangible threat. The vulnerability is not currently listed in the CISA KEV catalog, yet its remote code execution capability and the lack of vendor response elevate the risk for actively exposed applications. Attackers can exploit the flaw from anywhere on the internet that can reach the vulnerable endpoint.