{"id":"CVE-2026-31843","aliases":["CVE-2026-31843","GHSA-m5wg-cjgh-223j"],"related":[],"kind":"vulnerability","state":"published","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"El paquete Laravel goodoneuz/pay-uz (menor o igual que 2.2.24) contiene una vulnerabilidad crítica en el endpoint /payment/API/editable/update que permite a atacantes no autenticados sobrescribir archivos PHP de gancho de pago existentes. El endpoint está expuesto a través de Route::any() sin middleware de autenticación, lo que permite el acceso remoto sin credenciales. La entrada controlada por el usuario se escribe directamente en archivos PHP ejecutables usando file_put_contents(). Estos archivos se ejecutan posteriormente a través de require() durante los flujos de trabajo normales de procesamiento de pagos, lo que resulta en ejecución remota de código bajo el comportamiento predeterminado de la aplicación. El token secreto de pago mencionado por el proveedor no está relacionado con este endpoint y no mitiga la vulnerabilidad.","source":"nvd"}],"published":"2026-04-16T13:02:55.701Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"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","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"TuranSec","scheme":"CVSS:4.0","vector":"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","score":10,"rating":"CRITICAL"},{"scorer":"TuranSec","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"TuranSec","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"version":"<= 2.2.24","status":"affected"}],"vendor":"goodoneuz","product":"pay-uz","package":"goodoneuz/pay-uz","repo":"https://github.com/shaxzodbek-uzb/pay-uz/","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.0.0"}],"ecosystem":"Packagist","package":"goodoneuz/pay-uz","purl":"pkg:composer/goodoneuz/pay-uz","source":"ghsa"}],"references":[{"url":"https://github.com/shaxzodbek-uzb/pay-uz","tags":["package","product"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/goodoneuz/pay-uz/blob/master/src/routes/web.php","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/goodoneuz/pay-uz/blob/master/src/Http/Controllers/ApiController.php","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://packagist.org/packages/goodoneuz/pay-uz","tags":["product","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31843","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/shaxzodbek-uzb/pay-uz/pull/73","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/shaxzodbek-uzb/pay-uz/releases/tag/3.0.0","tags":["web"],"sources":["ghsa"]}],"credits":["Muhammadiyev G'iyosiddin"],"assigner":"TuranSec","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-04-16T17:23:59.905Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31843","url":"https://www.cve.org/CVERecord?id=CVE-2026-31843","licence":"CVE Terms of Use","modified":"2026-08-10T11:43:31.348Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m5wg-cjgh-223j","url":"https://github.com/advisories/GHSA-m5wg-cjgh-223j","licence":"CC-BY-4.0","modified":"2026-07-27T15:15:32.070Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31843","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31843","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.901Z","epss":{"score":0.01408,"percentile":0.73414,"date":"2026-12-01T12:00:22.000Z"}}