CVE-2026-31843

Source
https://cve.org/CVERecord?id=CVE-2026-31843
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31843.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31843
Aliases
Published
2026-04-16T13:02:55.701Z
Modified
2026-07-08T08:03:28.064052423Z
Severity
  • 10.0 (Critical) CVSS_V4 - 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 CVSS Calculator
Summary
[none]
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 fileputcontents(). 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.

Database specific
{
    "cna_assigner": "TuranSec",
    "cwe_ids": [
        "CWE-284"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31843.json"
}
References

Affected packages

Git / github.com/shaxzodbek-uzb/pay-uz

Affected ranges

Type
GIT
Repo
https://github.com/shaxzodbek-uzb/pay-uz
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.2.24"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

1.*
1.0
1.2
1.3
1.4
1.6
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.7.1
1.7.2
1.7.3
1.7.4
2.*
2.0
2.0.1
2.0.2
2.0.3
2.1
2.1.1
2.2
2.2.1
2.2.10
2.2.11
2.2.12
2.2.13
2.2.14
2.2.15
2.2.16
2.2.17
2.2.18
2.2.19
2.2.2
2.2.20
2.2.21
2.2.22
2.2.23
2.2.24
2.2.3
2.2.4
2.2.5
2.2.6
2.2.7
2.2.8
2.2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31843.json"