CVE-2025-46347
PHP vulnerability analysis and mitigation

Overview

YesWiki, a PHP-based wiki system, was found to contain a critical remote code execution vulnerability (CVE-2025-46347) prior to version 4.5.4. The vulnerability was discovered and disclosed on April 29, 2025, affecting all versions before 4.5.4. The issue allows attackers to perform arbitrary file writes with PHP extensions, which can then be accessed to execute arbitrary code on the server (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the graphical configuration feature, specifically through the custom-presets API endpoint. An attacker can manipulate requests to write files with PHP extensions to the server. The vulnerability has been assigned a CVSS 4.0 score of 5.8 (MEDIUM) with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:P. The issue is related to improper encoding or escaping of output (CWE-116) (Wiz, NVD).

Impact

The vulnerability can lead to full compromise of the server through remote code execution. While initial file creation requires authentication, subsequent execution of the malicious file can be performed without authentication. The vulnerability could potentially be exploited unwittingly by users through XSS vulnerabilities (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in YesWiki version 4.5.4. Recommended mitigations include restricting file extensions to a safelist (e.g., .css only) and disabling PHP execution in user-writable directories (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-13828CRITICAL9
  • PHPPHP
  • mautic/core
NoYesDec 02, 2025
CVE-2025-13827HIGH8.8
  • PHPPHP
  • mautic/grapes-js-builder-bundle
NoYesDec 02, 2025
CVE-2025-66312MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66311MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025
CVE-2025-66310MEDIUM6.2
  • PHPPHP
  • getgrav/grav
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management