critical CVSS 9.8 EPSS 0.82%

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 -y

Defensia 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 bodies

WAF 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 review

How to check if you are affected

  1. Run `php -v` to verify the currently installed PHP version and confirm it is patched
  2. 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
  3. 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'`
  4. 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

CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-25174CVSS 10Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion') vulnerability in beeteam368 BeeTeam368 Extensions beeteam368-extensions allows PHP Local File Inclusion.This issue affects BeeTeam368 Extensions: from n/a through <= 1.9.4.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.

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