A AegiFlow
CRITICALCVSS 10.0EPSS 2.8%

CVE-2026-31843

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

Published
2026-04-16
Modified
2026-07-27
EPSS percentile
85%
Aliases
GHSA-m5wg-cjgh-223j
Sources
github-advisory

Summary

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.

Affected packages

EcosystemPackageAffected versionsFixed versions
Packagistgoodoneuz/pay-uz3.0.0

Remediation: Upgrade to 3.0.0 or later.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.