Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
Authentication required (PR:L) and concurrent timing dependency (AC:H); only financial integrity is impacted with no confidentiality or availability effect.
Primary rating from Vendor (https://github.com/Paymenter/Paymenter).
CVSS VectorVendor: https://github.com/Paymenter/Paymenter
Lifecycle Timeline
1DescriptionCVE.org
Summary
The credit payment implementation in app/Livewire/Invoices/Show.php executes a pessimistic row lock (lockForUpdate()) outside of an active database transaction. Because MySQL/MariaDB requires an enclosing transaction to enforce row-level locks, the guard is ineffective. Concurrent payment requests can exploit this race condition to read the same credit balance simultaneously, allowing users to pay multiple invoices using the same credit balance.
Technical Details
The issue occurs because the application attempts to lock the user's credit balance row in the database (lockForUpdate()) without opening a database transaction. In database systems like MySQL, a row lock only works inside a formal transaction; without one, the lock is completely ignored.
Because there is no active lock, two payment requests sent at the exact same millisecond can look at the database at the same time. Both requests see the original credit balance, decide it is sufficient, and approve the payment.
Impact
This race condition allows any authenticated user with a valid credit balance to bypass balance restrictions and settle multiple pending invoices simultaneously for the cost of a single invoice.
Because the payment processes successfully through ExtensionHelper::addPayment(), the application provisions the corresponding services or digital goods, resulting in direct financial or resource loss to the platform.
AnalysisAI
Credit double-spend via race condition in Paymenter allows any authenticated user with a non-zero credit balance to settle multiple invoices for the cost of one. The root cause is that lockForUpdate() in app/Livewire/Invoices/Show.php is called outside a database transaction, rendering the pessimistic lock a no-op in MySQL/MariaDB and leaving the read-check-deduct sequence unprotected against concurrent execution. Successful exploitation results in direct financial or resource loss to the platform operator as ExtensionHelper::addPayment() provisions services or digital goods for each winning request. No public exploit has been identified at time of analysis.
Technical ContextAI
Paymenter is an open-source PHP billing and service panel (Composer package paymenter/paymenter) built on Laravel. The vulnerable code in app/Livewire/Invoices/Show.php attempts to use Laravel's lockForUpdate() - which generates a SELECT ... FOR UPDATE SQL statement - to serialize access to the user's credit balance row. However, in MySQL and MariaDB's InnoDB storage engine, SELECT ... FOR UPDATE only acquires and holds a row-level lock within the scope of an active transaction. Without an enclosing DB::transaction() call, the lock is issued and immediately released before the balance check and deduction execute, making the guard completely ineffective. CWE-362 (Concurrent Execution Using Shared Resource with Improper Synchronization) is the precise root cause class: the credit balance is a shared resource subject to a read-modify-write operation that lacks a valid synchronization primitive, exposing a classic TOCTOU window. PostgreSQL's autocommit and locking semantics differ and may not exhibit the same behavior.
RemediationAI
The correct fix is to wrap the entire credit balance check, lockForUpdate() call, deduction, and ExtensionHelper::addPayment() invocation inside an explicit Laravel database transaction using DB::transaction(), ensuring the pessimistic lock is held for the full duration of the atomic read-modify-write sequence. Operators should consult the GitHub Security Advisory GHSA-pgcq-8grm-5rx9 (https://github.com/Paymenter/Paymenter/security/advisories/GHSA-pgcq-8grm-5rx9) for the specific patched release version, as no exact fix version is confirmed in the currently available data. As a compensating control prior to patching, disabling credit-based payment processing entirely eliminates the attack surface but blocks legitimate credit use. Rate-limiting concurrent requests per authenticated user to the invoice payment endpoint (e.g., via middleware) narrows the race window and raises the bar for exploitation but does not eliminate it, and aggressive limits may throttle legitimate users. Adding a database-level CHECK constraint enforcing a non-negative credit balance provides a last-resort guard against the balance going negative but does not prevent double-provisioning if both transactions commit before either deduction is reflected.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
Same weakness CWE-362 – Race Condition
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-46097
GHSA-pgcq-8grm-5rx9