Description
Paymenter is a free and open-source webshop solution for management of hosting services. In versions prior to 1.5.5, 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. 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. 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. This issue has been fixed in version 1.5.5.
Published: 2026-07-20
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A race condition exists in Paymenter’s credit payment logic, specifically in the file app/Livewire/Invoices/Show.php. The code attempts a pessimistic row lock with lockForUpdate() but performs it outside an active database transaction. Because MySQL and MariaDB require a transaction to enforce row‑level locks, the guard is ineffective, allowing simultaneous payment requests to read the same credit balance. Each request separately verifies sufficient funds and processes the payment, enabling the same credit to be applied twice and provisioning services or goods. The result is a direct financial or resource loss to the platform owner.

Affected Systems

All releases of the Paymenter webshop solution older than 1.5.5 are vulnerable. Administrators running these versions are susceptible if they allow concurrent credit payments against the same balance.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, but the potential for monetary loss is significant. EPSS is less than 1% and the flaw is not listed in CISA KEV, suggesting that widespread exploitation has not yet been observed. The likely attack vector is a web‑based exploit: an attacker orchestrates the delivery of two or more nearly simultaneous HTTP requests to the credit payment endpoint, taking advantage of the timing gap to double‑spend. Based on the description, it is inferred that concurrency control via proper transactional boundaries or queuing is required to mitigate the risk.

Generated by OpenCVE AI on July 30, 2026 at 18:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Paymenter to version 1.5.5 or later, which wraps the lockForUpdate() call inside a transaction.
  • If an upgrade cannot be performed immediately, configure the application to serialize credit payment requests, ensuring that only one transaction manipulates the balance at any time.
  • Verify and amend any custom code that modifies lockForUpdate logic to guarantee it runs within an active database transaction, thereby enforcing proper row‑level locking.

Generated by OpenCVE AI on July 30, 2026 at 18:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pgcq-8grm-5rx9 Paymenter has race condition in payWithCredit() that enables credit double-spend
History

Thu, 23 Jul 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Paymenter
Paymenter paymenter
Vendors & Products Paymenter
Paymenter paymenter

Mon, 20 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 20 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Description Paymenter is a free and open-source webshop solution for management of hosting services. In versions prior to 1.5.5, 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. 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. 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. This issue has been fixed in version 1.5.5.
Title Paymenter: Race condition in payWithCredit() enables credit double-spend
Weaknesses CWE-362
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N'}


Subscriptions

Paymenter Paymenter
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-20T21:45:00.984Z

Reserved: 2026-06-16T16:16:32.628Z

Link: CVE-2026-55219

cve-icon Vulnrichment

Updated: 2026-07-20T21:44:57.953Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:45:06Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')