Critical
goodoneuz/pay-uz Unauthenticated PHP File Overwrite via /payment/api/editable/update Leading to Remote Code Execution
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-31843
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 23:38 UTC · Revision 1
Source evidence
goodoneuz/pay-uz Unauthenticated PHP File Overwrite via /payment/api/editable/update Leading to Remote Code Execution
core-osv · Original sourcePublished 16 Apr 2026, 13:02 UTC
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.
osv:CVE-2026-31843
Complete source record
{
"id": "8198dc9fccc2407173b02efe84e7bca870035d29ccc83f49be850ade8b1d5a67",
"url": "https://osv.dev/vulnerability/CVE-2026-31843",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "goodoneuz/pay-uz Unauthenticated PHP File Overwrite via /payment/api/editable/update Leading to Remote Code Execution",
"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.",
"evidence": "osv:CVE-2026-31843",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2026-31843",
"aliases": [
"CVE-2026-31843",
"GHSA-m5wg-cjgh-223j"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/shaxzodbek-uzb/pay-uz",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "2253ceed0d6cab267c7eb6155153b0458a5dc6da"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.2.24"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
}
],
"versions": [
"2.2.24",
"2.2.16",
"2.2.23",
"2.2.22",
"2.2.21",
"2.2.20",
"2.2.19",
"2.2.18",
"2.2.17",
"2.2.15",
"2.2.14",
"2.2.13",
"2.2.12",
"2.2.11",
"2.2.10",
"2.2.9",
"2.2.8",
"2.2.7",
"2.2.6",
"2.2.5",
"2.2.4",
"2.2.3",
"2.2.2",
"2.2.1",
"2.2",
"2.1.1",
"2.1",
"2.0.3",
"2.0.2",
"2.0.1",
"2.0",
"1.7.4",
"1.7.3",
"1.7.2",
"1.7.1",
"1.6.6",
"1.6.5",
"1.6.4",
"1.6.3",
"1.6.2",
"1.6.1",
"1.6",
"1.4",
"1.3",
"1.2",
"1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31843.json"
}
}
],
"modified": "2026-10-28T02:30:40.496063937Z",
"provider": "osv",
"references": [
"https://github.com/shaxzodbek-uzb/pay-uz/",
"https://packagist.org/packages/goodoneuz/pay-uz",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31843.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-31843",
"https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php",
"https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php",
"https://github.com/shaxzodbek-uzb/pay-uz"
],
"provider_metadata": {
"cwe_ids": [
"CWE-284"
],
"cna_assigner": "TuranSec",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31843.json"
}
},
"related_cves": [
{
"value": "CVE-2026-31843",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 508061,
"published_at": "2026-04-16T13:02:55.701+00:00"
}