CVE-2026-55219: Paymenter has race condition in payWithCredit() that enables credit double-spend
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.
Published Jun 30, 2026
Affected packages
paymenter/paymenter
- Ecosystem
- Composer (PHP)
- Affected
- <= 1.5.4
- Fixed in
- 1.5.5
- Check
composer show paymenter/paymenter
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to debibobo, CorwinDev.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-103026
Paymenter: Unauthenticated arbitrary method invocation in Livewire components
high8.1Nov 20, 2026CVE-2026-71537
Paymenter has a credit-refund double-spend race condition in service downgrade (doUpgrade)
medium6.5Sep 18, 2026CVE-2026-47198
Paymenter has URL parameter injection that bypasses paid plan limits at checkout
high8.5Jun 30, 2026CVE-2025-58048
Paymenter vulnerable to Remote Code Execution via public file uploads
critical9.9Jun 22, 2026CVE-2026-44583
Paymenter has Blind Unauthenticated SSRF on the Paypal gateway module
medium5.3Jun 22, 2026CVE-2026-44584
Paymenter doesn't reset email verification status after email change
medium4.3Jun 22, 2026
