Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with valid user account
-
DeliveryAccumulate credit balance via legitimate top-up
-
ExploitIdentify multiple open invoices each costing the full balance
-
InstallScript concurrent HTTP payment requests for all invoices
-
C2lockForUpdate() fires outside transaction and is ignored
-
ExecuteBoth balance checks pass on stale read
-
ImpactServices provisioned for each request at single-invoice cost
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated session (CVSS PR:L confirms this - unauthenticated attackers cannot reach the vulnerable code path). The attacker must hold a non-zero credit balance sufficient to pass the unprotected balance check on at least one read. The credit payment method must be enabled on the Paymenter instance and selected as the payment method for the targeted invoices. The database backend must be MySQL or MariaDB; the |
| Impact | The assigned CVSS 5.3 (AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N) is directionally appropriate. AC:H reflects the timing dependency of the race condition, which is a real constraint, though in practice race conditions of this type are reliably triggerable with simple scripted parallel HTTP requests rather than requiring precise millisecond-level coordination. PR:L correctly captures the authentication requirement, which is the most meaningful limiting factor - the attacker pool is bounded to users with valid accounts and an existing credit balance. No CISA KEV listing exists, no public exploit code has been identified, and EPSS data was not provided in the available intelligence. The financial impact is direct and monetizable: a motivated authenticated user can obtain services without paying for them, making this a practical fraud vector rather than a theoretical issue. Platforms with open user registration and active credit top-up workflows face materially higher exposure than those with tightly controlled onboarding. |
| Exploit ScenarioDerived | An authenticated Paymenter user with 100 credits and two open invoices each priced at 100 credits writes a short script that fires both payment POST requests simultaneously using concurrent threads or async HTTP calls. Both requests enter |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 30, 2026
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.
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.
Affected VersionsENISA
Affected Packages
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
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.
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
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
DescriptionCVE.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.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
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
EUVD-2026-46097
GHSA-pgcq-8grm-5rx9
NVD
CVE.org
EPSS
Exploit-DB