CVE Catalog

CVE-2026-31843

Critical
Published: Translated: NVD NIST

Summary

The goodoneuz/pay-uz Laravel package in versions up to 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 without authentication, enabling remote access without credentials.

Risk Assessment

This vulnerability poses a serious risk to organizations, allowing remote code execution, which can lead to application takeover and data leakage.

Recommendation

It is recommended to update the package to the latest version that addresses this vulnerability and to implement appropriate authentication mechanisms for API endpoints.

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS