Skip to content
CVE IDCVE-2026-71537GitHub advisory IDGHSA-5gmm-hjfj-8ff7

Paymenter has a credit-refund double-spend race condition in service downgrade (doUpgrade)

CVE-2026-71537 (GitHub advisory GHSA-5gmm-hjfj-8ff7) is a medium-severity vulnerability with a CVSS 3.1 base score of 6.5, classed as Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (CWE-362), in paymenter/paymenter (Packagist). Affected versions: <= 1.5.6. It is fixed in 1.5.7.

Medium6.5Fix availableGitHub reviewed

Published 18 Sept 2026Updated 18 Sept 2026

6.5MediumCVSS 3.1
EPSS
0.23%higher than 14% of CVEs
Weakness (CWE)
  • CWE-362Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
KEV status
Not in KEV
Published
18 Sept 2026
Updated
18 Sept 2026
Ecosystem
  • Packagist (PHP)
Assigned by (CNA)
GitHub_M

Summary

Source: OSV (GitHub advisory)

The service downgrade implementation in app/Livewire/Services/Upgrade.php::doUpgrade() executes a proration calculation and a subsequent user credit refund without any transactional safety or database locks. The only concurrency check relies on an unisolated database query checking for existing pending upgrades. Because there is no active database transaction or pessimistic row-level lock spanning this validation and the subsequent credit update, concurrent downgrade requests can bypass the guard simultaneously. This allows a user to trigger multiple refunds for a single service downgrade.

Technical Details

The issue occurs because the application verifies eligibility using an unlocked read operation (Service::upgradable) which checks if a pending upgrade row exists. Since there is no enclosing DB::transaction or lockForUpdate(), multiple requests sent in parallel can all query the database at the same millisecond, observe that no pending upgrade exists, and pass the safety check.

Once passed, each concurrent request inserts its own pending upgrade record and executes $credit->increment('amount', abs($price)). Because the balance updates are not serialized against the initial check, the user's credit balance is cumulatively inflated by $N$ times the refund amount for a single legitimate downgrade.

Impact

This race condition allows any authenticated customer with an active, downgradable service to inflate their spendable credit balance to an arbitrary multiple of their legitimate refund amount.

Because the newly granted balance acts as real, spendable store credit, it can be immediately leveraged to settle future platform invoices or provision additional services, resulting in direct financial and resource loss to the operator.

Technical details

Source: GitHub Advisory Database

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Medium6.5Base score from GitHub Advisory Database

Attack Vector AV
Network
Attack Complexity AC
Low
Privileges Required PR
Low
User Interaction UI
None
Scope S
Unchanged
Confidentiality C
None
Integrity I
High
Availability A
None

Affected packages

Source: OSV (GitHub advisory)

  • paymenter/paymenter
    Packagist (PHP)
    pkg:composer/paymenter/paymenter
    Affected versions
    <= 1.5.6
    Fixed in
    1.5.7
    Show 35 listed versions
    • 0.1
    • 0.1.1
    • 0.1.2
    • 0.1.3
    • 0.2
    • 0.2.1
    • v0.3
    • v0.4
    • v0.4.1
    • v0.5
    • v0.5.1
    • v0.5.2

Fix

Source: OSV (GitHub advisory)

Fix available

Upgrade to 1.5.7 or later.

Patch commits

  • a42e7f8Patch commitgithub.com/Paymenter/Paymenter

    Merge commit from fork

    +102 −71 across 1 file

    • app/Livewire/Services/Upgrade.php+102 −71

Release commits

The commits each fixed release tag points at. They usually bump the version rather than contain the fix itself.

  • f8a884eRelease commit1.5.7github.com/paymenter/paymenter

Vulnerability intelligence

References

Credits

Questions about CVE-2026-71537

What is the GHSA ID for CVE-2026-71537?
GitHub tracks CVE-2026-71537 as GHSA-5gmm-hjfj-8ff7.
What is the CVSS score of CVE-2026-71537?
CVE-2026-71537 has a CVSS 3.1 base score of 6.5 (Medium), vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
Which versions are affected by CVE-2026-71537?
paymenter/paymenter (Packagist): <= 1.5.6.
How do I fix CVE-2026-71537?
Upgrade to 1.5.7 or later. The fix is in commit a42e7f8.
What is the Package URL (PURL) for CVE-2026-71537?
The affected package's PURL is pkg:composer/paymenter/paymenter.
Is CVE-2026-71537 exploited in the wild?
CISA's Known Exploited Vulnerabilities catalog doesn't list CVE-2026-71537. That means no confirmed exploitation has been catalogued, not that it is safe to leave unpatched. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14% of CVEs.

Data sources

Upstream records

  • OSV (GitHub advisory)LoadedRaw JSON
  • GitHub Advisory DatabaseLoadedRaw JSON
  • OSV (CVE record)LoadedRaw JSON
  • CVE.orgLoaded
  • CISA KEV catalogLoaded

Fetched 2 days ago (13 Oct 2026, 12:56 UTC). Records refresh automatically after 24 hours.

Where each part of this page came from

Title and description
OSV (GitHub advisory)
Severity score
GitHub Advisory Database
Weakness (CWE)
GitHub Advisory Database
Affected packages
OSV (GitHub advisory)
Fix
OSV (GitHub advisory)
References
Computed by CVEminer
KEV status
CISA KEV catalog
EPSS
GitHub Advisory Database

OSV and GitHub Advisory Database content is licensed CC BY 4.0. Values marked as computed or derived were calculated by CVEminer from the upstream data.