CVE-2026-31843: goodoneuz/pay-uz The /payment/api/editable/update Endpoint Overwrites Existing Vulnerability
CRITICALCVE-2026-31843 is a CRITICAL (CVSS 9.8) the /payment/api/editable/update endpoint overwrites existing vulnerability (CWE-284: Improper Access Control) affecting goodoneuz/pay-uz libraries in the Packagist ecosystem. The issue involves the /payment/api/editable/update endpoint overwrites existing php payment hook files. Remediation is available by upgrading affected packages to version 3.0.0.
CVE-2026-31843 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-31843
To remediate this vulnerability, upgrade all affected goodoneuz/pay-uz dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade goodoneuz/pay-uz to 3.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for goodoneuz/pay-uz
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-31843, inspect your project dependencies for goodoneuz/pay-uz:
inspect dependencies for goodoneuz/pay-uz
Analyze the terminal output to locate any version of goodoneuz/pay-uz in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In goodoneuz/pay-uz, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-31843 Affected goodoneuz/pay-uz Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
goodoneuz/pay-uz
|
Packagist |
< 3.0.0
|
3.0.0
|
References
Frequently Asked Questions
What is CVE-2026-31843?
Which goodoneuz/pay-uz versions are affected?
What version fixes CVE-2026-31843?
Is goodoneuz/pay-uz affected?
What is the CVSS score of CVE-2026-31843?
What CWE is associated with CVE-2026-31843?
How can I check Packagist dependencies for CVE-2026-31843?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-m5wg-cjgh-223j",
"modified" : "2026-07-27T15:07:24Z",
"published" : "2026-04-16T15:31:32Z",
"aliases" : [ "CVE-2026-31843" ],
"summary" : "goodoneuz/pay-uz: the /payment/api/editable/update endpoint overwrites existing PHP payment hook files",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "goodoneuz/pay-uz"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.0.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.2.24"
}
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-31843"
}, {
"type" : "WEB",
"url" : "https://github.com/shaxzodbek-uzb/pay-uz/pull/73"
}, {
"type" : "WEB",
"url" : "https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php"
}, {
"type" : "WEB",
"url" : "https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/shaxzodbek-uzb/pay-uz"
}, {
"type" : "WEB",
"url" : "https://github.com/shaxzodbek-uzb/pay-uz/releases/tag/3.0.0"
}, {
"type" : "WEB",
"url" : "https://packagist.org/packages/goodoneuz/pay-uz"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-284" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-16T22:58:58Z",
"nvd_published_at" : "2026-04-16T13:16:48Z"
}
}