CVE-2025-46347·PHP vulnerability
YesWiki is a wiki system written in PHP. Prior to version 4.5.4, YesWiki vulnerable to remote code execution. An arbitrary file write can be used to write a file with a PHP extension, which then can be browsed to in order to execute arbitrary code on the server, resulting in a full compromise of the server. This could potentially be performed unwittingly by a user. This issue has been patched in version 4.5.4.
- Severity
- critical
- Software
- PHP
- Fixed in
- 4.5.4
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.82% — higher than 53% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2025-46347 scores 9.8 on CVSS, so a successful attack would be serious — but at 0.82%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
Until: 4.5.4
Fixed in: 4.5.4
How to fix this CVE
YesWiki installations must be upgraded to version 4.5.4 or later to patch a critical remote code execution vulnerability that allows attackers to write arbitrary PHP files to the server. Organizations running older versions should prioritize this update immediately, as the vulnerability can be exploited to gain complete server compromise. After upgrading PHP and YesWiki, verify the deployment and review file permissions to restrict unauthorized uploads.
sudo dnf check-update php && sudo dnf upgrade php -yDefensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|PUT requests to upload directories with PHP file extensions in the filename; suspicious multipart form-data submissions containing PHP code; HTTP 200 responses followed by GET requests to newly created .php files in web-accessible directories; patterns like `filename=.*\.php` or `Content-Disposition.*\.php` in request bodiesWAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement WAF rules to block file uploads with .php extensions unless explicitly whitelisted; enforce Content-Type validation to reject requests claiming to upload images but containing PHP code; restrict POST/PUT requests to designated upload directories only; require authentication tokens on file upload endpoints; block access to newly created files in upload directories for 24 hours pending administrative reviewHow to check if you are affected
- Run `php -v` to verify the currently installed PHP version and confirm it is patched
- Check the YesWiki installation directory with `cat /path/to/yeswiki/VERSION` or review the admin panel to confirm YesWiki version is 4.5.4 or higher
- Search web server logs for suspicious file write requests: `grep -i 'POST.*upload\|PUT.*php' /var/log/apache2/access.log /var/log/nginx/access.log 2>/dev/null | grep -v '.js\|.css'`
- Verify file integrity by checking for recently modified PHP files in the YesWiki directory: `find /path/to/yeswiki -name '*.php' -type f -mtime -7 -ls` to identify files changed in the last 7 days
FAQ
What is CVE-2025-46347?
CVE-2025-46347 is a critical remote code execution vulnerability in YesWiki prior to version 4.5.4 that allows attackers to write arbitrary files with PHP extensions to the server filesystem. By exploiting insufficient file upload validation, an attacker can create malicious PHP files and execute them by accessing them through a web browser, resulting in full server compromise.
Is CVE-2025-46347 being actively exploited?
No, CVE-2025-46347 is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit code is available. However, given the critical severity (CVSS 9.8) and ease of exploitation, organizations should treat this as a high-priority patch regardless of current threat activity.
What versions of PHP are affected by CVE-2025-46347?
All versions of YesWiki prior to 4.5.4 are affected. The vulnerability exists in all releases up to and including 4.5.3, and affects installations regardless of the underlying PHP version running on the server.
How do I check if my server is vulnerable to CVE-2025-46347?
Run `cat /path/to/yeswiki/VERSION` or check the YesWiki administration panel to determine your installed version. If the version is below 4.5.4, your installation is vulnerable and requires immediate patching.
Does Defensia detect CVE-2025-46347?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP is installed on a monitored server and YesWiki is detected, CVE-2025-46347 will appear in your dashboard with remediation steps.
Related PHP CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-46347. Free for 1 server.
Get started free