---
id: CVE-2026-120349
title: dayrui XunRuiCMS Mobile Site Directory index.php str_replace code injection
summary: >-
  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 di…
severity: high
cvss: 7.3
cvssVector: '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'
cvssSource: cna
cwe:
  - CWE-94
  - CWE-74
vendor: dayrui
product: XunRuiCMS
affected:
  - XunRuiCMS 4.7.0
  - XunRuiCMS 4.7.1
  - XunRuiCMS 4.7.2
  - XunRuiCMS 4.7.3
  - XunRuiCMS 4.7.4
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-11-02T14:07:38.253796Z'
exploitAvailable: true
published: '2026-11-02'
updated: '2026-11-02'
sourceUpdated: '2026-11-02T14:07:50.233Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-120349'
references:
  - url: 'https://vuldb.com/vuln/429673'
    label: >-
      VDB-429673 | dayrui XunRuiCMS Mobile Site Directory index.php str_replace
      code injection
  - url: 'https://vuldb.com/vuln/429673/cti'
    label: 'VDB-429673 | CTI Indicators (IOB, IOC, TTP, IOA)'
  - url: 'https://vuldb.com/cve/CVE-2026-120349'
    label: CVE-2026-120349 | CVE Analysis and Report
  - url: 'https://vuldb.com/submit/1016299'
    label: 'Submit #1016299 | dayrui XunRuiCMS 4.7.2 Code Injection'
  - url: >-
      https://github.com/tiranbge/disclosure-xunruicms-4.7.2/blob/master/reports/2.md
tags:
  - cve.org
  - exploit-available
epss: 0.00304
epssPercentile: 0.23357
ingestedAt: '2026-11-05T19:30:42.645Z'
---

## Overview

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.

## Affected

- `XunRuiCMS 4.7.0`
- `XunRuiCMS 4.7.1`
- `XunRuiCMS 4.7.2`
- `XunRuiCMS 4.7.3`
- `XunRuiCMS 4.7.4`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
