CVE-2025-6058
WordPress vulnerability analysis and mitigation

Overview

The WPBookit plugin for WordPress (versions up to and including 1.0.4) contains an arbitrary file upload vulnerability (CVE-2025-6058) discovered on July 12, 2025. The vulnerability exists in the imageuploadhandle() function hooked via the 'addbookingtype' route, which lacks proper file type validation (NVD).

Technical details

The vulnerability stems from insufficient file type validation in the imageuploadhandle() function. While the function attempts to validate file types, it does so after moving the uploaded file, creating a window for exploitation. The vulnerability has been assigned a CVSS v3.1 score of 9.8 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and is classified as CWE-434 (Unrestricted Upload of File with Dangerous Type) (NVD).

Impact

The vulnerability allows unauthenticated attackers to upload arbitrary files to the affected site's server, potentially enabling remote code execution. This could lead to complete system compromise, allowing attackers to gain unauthorized access to sensitive data, modify website content, or use the server for malicious purposes (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 1.0.5 of the WPBookit plugin. Site administrators are strongly advised to update to this version immediately. The patch implements proper file type validation before file upload processing (WordPress Plugin).

Additional resources


SourceThis report was generated using AI

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