Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. goodoneuz/pay-uz
  4. ›
  5. CVE-2026-31843

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

April 16, 2026

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.

References

  • github.com/advisories/GHSA-m5wg-cjgh-223j
  • 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
  • nvd.nist.gov/vuln/detail/CVE-2026-31843
  • packagist.org/packages/goodoneuz/pay-uz

Code Behaviors & Features

Detect and mitigate CVE-2026-31843 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.2.24

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

packagist/goodoneuz/pay-uz/CVE-2026-31843.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:20:00 +0000.