# CVE-2026-120349: dayrui XunRuiCMS Mobile Site Directory index.php str_replace code injection

Status: published. Published: 2026-11-02. Updated: 2026-11-02.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- dayrui / XunRuiCMS: 4.7.0 (affected); 4.7.1 (affected); 4.7.2 (affected); 4.7.3 (affected); 4.7.4 (affected). Source: CNA: VulDB

## Severity and prioritization

- CVSS 4.0: 6.9 (medium); 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; source: CNA: VulDB

- CVSS 3.1: 7.3 (high); 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; source: CNA: VulDB

- CVSS 3.0: 7.3 (high); 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; source: CNA: VulDB

- CVSS 2.0: 7.5 (high); AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:ND/RC:C; source: CNA: VulDB

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-94, CWE-74

## Exploit evidence

- exploit: https://github.com/tiranbge/disclosure-xunruicms-4.7.2/blob/master/reports/2.md (CNA: VulDB)

## References

- https://vuldb.com/vuln/429673 (CNA: VulDB; vdb-entry, technical-description)

- https://vuldb.com/vuln/429673/cti (CNA: VulDB; signature, permissions-required)

- https://vuldb.com/cve/CVE-2026-120349 (CNA: VulDB; third-party-advisory)

- https://vuldb.com/submit/1016299 (CNA: VulDB; third-party-advisory)

- https://github.com/tiranbge/disclosure-xunruicms-4.7.2/blob/master/reports/2.md (CNA: VulDB; exploit)

## Provenance

- CNA: VulDB: https://www.cve.org/CVERecord?id=CVE-2026-120349; retrieved 2026-11-02; source updated 2026-11-02

Revision: 22927e63d341ebb39e7432a39a21fe89a9a3e5d9959b7f9d7fd1634a96c8855d

Canonical: https://y2.dev/cve/CVE-2026-120349