Loading...
Skip to main content

CVE-2026-31843 — Vulnerability in goodoneuz/pay-uz — CVE Details

CRITICAL

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

Published April 16, 2026Updated July 27, 2026Source: osv

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.

Advisory Timeline

  • First published April 16, 2026 (179 days ago).
  • Last revised July 27, 2026 — 102 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update goodoneuz/pay-uz to 3.0.0 or later
composer require "goodoneuz/pay-uz:^3.0.0"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
goodoneuz/pay-uz
packagist
1.0, 1.1, 1.3, 1.4 (+43 more)3.0.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2026-31843?
goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2026-31843?
CVE-2026-31843 affects goodoneuz/pay-uz. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-31843 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-m5wg-cjgh-223j

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies