Unauthenticated RCE in goodoneuz/pay-uz editable update endpoint
CVE-2026-31843 is a critical remote code execution vulnerability in the goodoneuz/pay-uz Laravel package affecting versions up to and including 2.2.24. The flaw is in the payment editable update API endpoint, which is exposed through a route that accepts arbitrary HTTP methods and is not protected by authentication middleware. As a result, remote attackers can reach the endpoint without credentials. The vulnerable code writes attacker-controlled input directly into existing PHP payment hook files using file write operations. Those hook files are subsequently loaded and executed during normal payment processing through PHP include semantics, turning the file overwrite primitive into reliable unauthenticated remote code execution under default application behavior.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthenticated remote attacker to modify executable server-side PHP hook logic and obtain code execution in the context of the web application. This can lead to full compromise of the affected application, including arbitrary command execution, deployment of webshells or other malware, theft or manipulation of application data, tampering with payment-related workflows, persistence, and potential follow-on lateral movement depending on the privileges and network reach of the hosting environment.
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict or disable external access to the vulnerable payment editable update endpoint. Apply compensating controls such as web server or reverse proxy access restrictions, network allowlisting, and temporary route removal or blocking. Because exploitation overwrites executable PHP files, integrity monitoring of application code and payment hook files should be enabled, and any suspicious changes should be treated as potential compromise requiring incident response.
Patch, then assume compromise.
Upgrade goodoneuz/pay-uz to version 3.0.0 or later. After patching, review the application for unauthorized modifications to payment hook files and other signs of post-exploitation, remove any malicious code that may have been written through the vulnerable endpoint, rotate potentially exposed secrets, and restore affected files from a known-good source if integrity cannot be verified.
No public exploits tracked yet. Mallory keeps watching.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.