CVE-2026-31843
The goodoneuz/pay-uz Laravel package (<= 2.2.24) contains a …
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. User-controlled input is directly written into executable PHP files using file_put_contents(). These files are later executed via require() during normal payment processing workflows, resulting in remote code execution under default application behavior. The payment secret token mentioned by the vendor is unrelated to this endpoint and does not mitigate the vulnerability.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php
- github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php
- github.com/shaxzodbek-uzb/pay-uz
- packagist.org/packages/goodoneuz/pay-uz
- nvd.nist.gov/vuln/detail/CVE-2026-31843
- github.com/advisories/GHSA-m5wg-cjgh-223j
- github.com/shaxzodbek-uzb/pay-uz/pull/73
- github.com/shaxzodbek-uzb/pay-uz/releases/tag/3.0.0
- nvd.nist.gov/vuln/detail/CVE-2026-31843
- cve.org/CVERecord?id=CVE-2026-31843
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.