BeWelcome Rox CVE-2025-34292
CRITICALSeverity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Network-reachable unserialize() sink with low complexity and no interaction, but the CVSS vector's PR:L implies a low-privilege foothold; deserialization-to-RCE yields full C/I/A impact.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
3DescriptionCVE.org
Rox, the software running BeWelcome, contains a PHP object injection vulnerability resulting from deserialization of untrusted data. User-controlled input is passed to PHP's unserialize(): the POST parameter formkit_memory_recovery in \\RoxPostHandler::getCallbackAction and the 'memory cookie' read by \\RoxModelBase::getMemoryCookie (bwRemember). (1) If present, formkit_memory_recovery is processed and passed to unserialize(), and (2) restore-from-memory functionality calls unserialize() on the bwRemember cookie value. Gadget chains present in Rox and bundled libraries enable exploitation of object injection to write arbitrary files or achieve remote code execution. Successful exploitation can lead to full site compromise. This vulnerability was remediated with commit c60bf04 (2025-06-16).
AnalysisAI
Remote code execution in Rox, the PHP platform powering the BeWelcome hospitality-exchange community, arises from unsafe unserialize() calls on attacker-controllable input: the POST parameter formkit_memory_recovery handled by RoxPostHandler::getCallbackAction and the bwRemember 'memory cookie' read by RoxModelBase::getMemoryCookie. Because usable PHP gadget chains ship in Rox and its bundled libraries, an attacker with low-level access can trigger PHP object injection to write arbitrary files or execute code, resulting in full site compromise. The issue carries a CVSS 4.0 base score of 9.4 and was fixed in commit c60bf04 (2025-06-16); no public exploit identified at time of analysis, though a referenced technical gist may contain exploitation detail.
Technical ContextAI
The vulnerability is a classic CWE-502 Deserialization of Untrusted Data flaw in a PHP web application. PHP's unserialize() reconstructs arbitrary object graphs from a serialized string; if an application feeds untrusted bytes to it, an attacker can instantiate objects of any class currently loaded and control their properties. When such objects define 'magic methods' (__wakeup, __destruct, __toString, etc.) or when combined into a POP (Property-Oriented Programming) gadget chain across the application and its bundled libraries, deserialization alone can drive file writes, code inclusion, or command execution - this is PHP Object Injection. In Rox, two sinks receive untrusted data: the restore-from-memory ('remember me') feature deserializes the bwRemember cookie, and getCallbackAction deserializes the formkit_memory_recovery POST field (after stripslashes/htmlspecialchars_decode). The disclosure notes that suitable gadget chains already exist within Rox and its dependencies, converting object injection into arbitrary file write / RCE. No CPE strings were supplied in the input, so exact platform identifiers are unavailable; the affected component is identified from the source repository (github.com/BeWelcome/rox) and the patch diff to tools/services/roxposthandler.class.php.
Affected ProductsAI
The affected product is Rox, the open-source PHP application that runs the BeWelcome hospitality-exchange website (repository: https://github.com/BeWelcome/rox). No CPE identifiers were provided and the input specifies no version range; affected versions are those prior to fix commit c60bf04 dated 2025-06-16 (https://github.com/BeWelcome/rox/commit/c60bf04). The vulnerable code resides in tools/services/roxposthandler.class.php (RoxPostHandler::getCallbackAction) and the memory-cookie handling in RoxModelBase::getMemoryCookie. Vendor/researcher advisory: https://www.vulncheck.com/advisories/rox-php-object-injection-rce, with additional technical notes at https://gist.github.com/mcdruid/c0f7c42b28949c7d86cf77d0c674f398.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply Rox commit c60bf04 (2025-06-16), which removes the unserialize() of formkit_memory_recovery (the diff sets $mem_from_recovery = false) and hardens the callback handler; pull the current main branch of https://github.com/BeWelcome/rox if no tagged release is used. If you cannot patch immediately, the effective compensating controls are targeted: stop passing the formkit_memory_recovery POST parameter and the bwRemember memory cookie into unserialize() by disabling the restore-from-memory ('remember me') feature, or replace unserialize() with a safe encoding (JSON) or the allowed_classes => false option so no objects can be instantiated (trade-off: existing remember-me sessions break and users must re-authenticate). As a network-layer stopgap, use a WAF/reverse-proxy rule to reject requests carrying a formkit_memory_recovery field or a bwRemember cookie whose value contains PHP-serialized object markers (e.g. patterns like O: / a:), accepting the risk of false positives and that serialization can be obfuscated. Consult the VulnCheck advisory (https://www.vulncheck.com/advisories/rox-php-object-injection-rce) and the mcdruid gist for specifics before deploying filters.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-502 – Deserialization of Untrusted Data
View allShare
External POC / Exploit Code
Leaving vuln.today