CVE-2026-120349

dayrui XunRuiCMS Mobile Site Directory index.php str_replace code injection

Published Nov 2, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
A security flaw has been discovered in dayrui XunRuiCMS up to 4.7.4. Affected by this issue is the function str_replace of the file /var/www/html/zzmob/index.php of the component Mobile Site Directory. The manipulation of the argument dirname results in code injection. The attack can be launched remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Locate all XunRuiCMS installations on your network and verify that the running version is 4.7.5 or later; if a newer version is unavailable, plan an upgrade path to a protected version as soon as one exists.
  • If an official patch is not yet released, remove or neutralize the vulnerable code by replacing the str_replace call in /var/www/html/zzmob/index.php with a sanitized, hardcoded directory name or a safe function that does not evaluate user input.
  • Enforce strict access controls around the Mobile Site Directory by limiting remote HTTP requests to trusted IP ranges and applying a web application firewall rule that blocks or sanitizes the dirname parameter to prevent injection attempts.

Generated by OpenCVE AI on November 2, 2026 at 07:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A security flaw has been discovered in dayrui XunRuiCMS up to 4.7.4. Affected by this issue is the function str_replace of the file /var/www/html/zzmob/index.php of the component Mobile Site Directory. The manipulation of the argument dirname results in code injection. The attack can be launched remotely. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Title dayrui XunRuiCMS Mobile Site Directory index.php str_replace code injection
First Time appeared Xunruicms
Xunruicms xunruicms
Weaknesses CWE-74
CWE-94
CPEs cpe:2.3:a:xunruicms:xunruicms:*:*:*:*:*:*:*:*
Vendors & Products Xunruicms
Xunruicms xunruicms
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-74

    Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 2, 2026, 2:07 PM
Reserved
Nov 1, 2026, 3:51 PM
Status
Deferred
Published
Nov 2, 2026, 7:18 AM
Modified
Nov 2, 2026, 4:19 PM