CVE-2026-31843 Details
Description
The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a critical vulnerability in the /payment/api/editable/update endpoint that allows unauthenticated attackers to overwrite existing PHP payment hook files. The endpoint is exposed via Route::any without authentication middleware, enabling remote access without credentials.
A critical remote code execution vulnerability has been identified in the Goodoneuz Pay-uz Laravel package, specifically in versions through 2.2.24. The issue arises in the '/payment/api/editable/update' endpoint, which is accessible without authentication. This endpoint allows unauthenticated attackers to overwrite existing PHP payment hook files. The vulnerability is exploited by sending user-controlled input that is directly written into executable PHP files using 'file_put_contents()'. These modified files are then executed via 'require()' during regular payment processing, leading to remote code execution under the default application behavior. Notably, the payment secret token referenced by the vendor does not mitigate this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 16, 2026CISA-ADP
Assessed Apr 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php | TuranSec | Source CodeVendor |
| https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php | TuranSec | Source CodeVendor |
| https://github.com/shaxzodbek-uzb/pay-uz | TuranSec | Source CodeVendor |
| https://packagist.org/packages/goodoneuz/pay-uz | TuranSec | ProductVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-284 | Improper Access Control | TuranSec |
Affected Products
| Product | Versions |
|---|---|
| goodoneuz/pay-uz | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 10, 2026 | CVE Modified | TuranSec |
| Jun 17, 2026 | CVE Modified | TuranSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 16, 2026 | New CVE Received | TuranSec |
Volerion