NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

CVE-2026-31843: goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files

criticalCVSS 4.0 10.0 · 3.1 9.8GHSA-m5wg-cjgh-223j

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.

Published Apr 16, 2026 · Updated Jul 27, 2026

Affected packages

goodoneuz/pay-uz

Ecosystem
Composer (PHP)
Affected
<= 2.2.24
Fixed in
3.0.0
Check
composer show goodoneuz/pay-uz

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to shaxzodbek-uzb.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology