Skip to main content

pay-uz CVE-2026-31843

| EUVDEUVD-2026-23225 CRITICAL
Improper Access Control (CWE-284)
2026-04-16 TuranSec GHSA-m5wg-cjgh-223j
10.0
CVSS 4.0 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify pay-uz payment endpoint
  2. Delivery
    Send crafted request to /payment/api/editable/update
  3. Exploit
    Overwrite PHP hook file via file_put_contents
  4. Execution
    Trigger payment workflow require()
  5. Persist
    Execute arbitrary PHP as web user
  6. Impact
    Full application/host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Access control enforcement
MITRE ATT&CK

1 technique across 1 tactic: Defense Evasion

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions beyond the product being installed and reachable - the /payment/api/editable/update endpoint is exposed by default via Route::any() with no authentication middleware, so remote unauthenticated exploitation works against default configurations of pay-uz <= 2.2.24. The limiting factors are purely about exposure: the Laravel application must have the pay-uz routes registered and the payment/api path reachable by the attacker (internet-facing or otherwise routable), and the PHP process must have write permission to the hook-file directory (the default) and subsequently require() those files during payment processing. The vendor's payment secret token does NOT gate this route and provides no limit.

Impact

Every technical signal points to maximal impact: the CVSS 4.0 vector is AV:N/AC:L/AT:N/PR:N/UI:N with high confidentiality, integrity, and availability on both the vulnerable and subsequent systems, yielding a 10.0, and SSVC independently rates Technical Impact as total and Automatable as yes. The one counterweight is exposure: SSVC Exploitation is 'none' (not in CISA KEV), no public PoC is referenced, and EPSS is only 0.89% - low in absolute terms though at the 75th percentile. These are not contradictory but reflect scope: pay-uz is a niche, regional payment library, so real-world attack volume is likely low even though any exploited instance is game-over. This is a genuine drop-everything priority for the specific population that deploys pay-uz, rather than an internet-wide event. The main uncertainty is that all root-cause detail derives from the CVE description and linked source files; NVD enrichment beyond the EUVD mirror is limited.

Exploit ScenarioDerived

An attacker who knows a target runs pay-uz sends a single crafted HTTP request (any method) to /payment/api/editable/update, embedding PHP code in the request body. The package writes that content into a payment hook PHP file, and when the next payment-processing flow require()s the file, the attacker's code executes as the web application user, granting a webshell or reverse shell. No credentials, secret token, or user interaction are required, and because SSVC rates it automatable the request can be mass-scripted; no public exploit is identified yet, but the source code and endpoint are documented.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.9% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Unauthenticated remote code execution in the goodoneuz/pay-uz Laravel package (all versions through 2.2.24) lets remote attackers overwrite executable PHP payment-hook files through the /payment/api/editable/update endpoint, which is registered via Route::any() with no authentication middleware. User-supplied content is written verbatim with file_put_contents() into PHP files that are later loaded via require() during normal payment processing, so any web-facing deployment can be fully compromised without credentials. CVSS is 10.0 and SSVC rates technical impact as total and the attack as automatable; there is no public exploit identified at time of analysis and EPSS is a modest 0.89% (75th percentile).

RemediationAI

No vendor-released patch or fixed version is identified at time of analysis - the advisory marks pay-uz through 2.2.24 as vulnerable without naming a corrected release, so monitor Packagist (https://packagist.org/packages/goodoneuz/pay-uz) and the upstream repo for a tagged fix and upgrade as soon as one ships. Until then, apply specific compensating controls: block or remove the /payment/api/editable/update route entirely (or place an authentication/authorization middleware and a method allowlist in front of it in your Laravel route definitions), which stops the write primitive at the cost of disabling the editable-hook feature; make the payment hook directory and its PHP files non-writable by the web/PHP-FPM user so file_put_contents() fails, accepting that legitimate hook editing will break; and add a WAF or reverse-proxy rule denying external access to /payment/api/editable/* so only trusted internal callers reach it. Cross-check with the vendor advisories at https://nvd.nist.gov/vuln/detail/CVE-2026-31843 and https://vuldb.com/vuln/357915.

Affected VersionsENISA

pay-uz ≤ 2.2.24

Affected Packages

composer goodoneuz/pay-uz fix: 3.0.0
euvd pay_uz no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pay-uz is a PHP/Laravel Composer package (distributed via Packagist) that integrates Uzbek payment gateways into Laravel applications. The vulnerability class is CWE-284 (Improper Access Control): the /payment/api/editable/update route is declared in src/routes/web.php with Route::any(), meaning it responds to every HTTP method and is deliberately excluded from any auth or CSRF guard. The handling logic in src/Http/Controllers/ApiController.php takes attacker-controlled request data and passes it straight to file_put_contents() targeting on-disk PHP 'hook' files. Because Laravel later includes those same files with require() as part of the payment workflow, the write primitive is promoted to arbitrary PHP execution - a classic untrusted-file-write-to-include chain. The vendor-referenced payment secret token protects other endpoints and is not checked on this route, so it provides no mitigation.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (TuranSec) PRIMARY 10.0 CRITICAL
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
vuln.today AI 9.8 CRITICAL

Unauthenticated network endpoint with no user interaction and low complexity (PR:N/UI:N/AC:L); arbitrary PHP execution yields full C/I/A within the application authority, so S:U.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
CVSS changed
Apr 16, 2026 - 13:22 NVD
9.8 (CRITICAL) 10.0 (CRITICAL)
CVE Published
Apr 16, 2026 - 13:02 nvd
CRITICAL 10.0

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Any web-facing application using goodoneuz/pay-uz Laravel package through version 2.2.24 can be remotely compromised without credentials, allowing attackers to inject malicious code directly into payment-processing systems. This exposes organizations to full application compromise, payment fraud, customer data theft, and regulatory penalties. The vulnerability directly undermines payment operations and customer trust.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Deploy Web Application Firewall rules to block requests to /payment/api/editable/update; (2) Restrict network access to payment processing endpoints to known source IPs only; (3) Implement file integrity monitoring on payment-hook PHP files to detect unauthorized modifications; (4) Disable the payment processor if not essential to operations; (5) Enable detailed application logging and alerting for POST/PUT requests to /payment/api/editable/update. Note: Exploitation risk is currently low as no public exploit code exists at time of analysis (EPSS 0.89%), but impact is total if compromised.

Threat Intelligence Overview

EPSS Score
0.9%
Top 25% exploitable
Prevalence
Low
niche regional (Uzbek) Laravel payment Composer package, limited footprint
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.9%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy