Privilege escalation in Capgo
CVE-2026-56239
- CVSS v3
- 7.6 High
- Public exploits
- None known
- EPSS
- 0.003 · 28.9th percentile
- Published
- 2026-06-21
Capgo before 12.128.2 contains a potential privilege escalation vulnerability in the public.apply_usage_overage SECURITY DEFINER function, which performs sensitive billing operations without enforcing internal authorization checks (no validation of auth.uid(), org membership, or check_min_rights). Because the function runs with the owner's privileges, it bypasses Row Level Security. If EXECUTE permission is available to the authenticated or anon roles (explicitly or via default privileges), an authenticated user could invoke it via Supabase RPC to manipulate billing data for arbitrary organizations, including unauthorized credit depletion and fraudulent overage event insertion.
Vulnerability class: Privilege Escalation
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- High
I:H - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.003, 28.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Capgo — versions 0, 12.128.2
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-qq85-vjrq-m75g) (vendor-advisory)
- VulnCheck Advisory: Capgo - Privilege Escalation via SECURITY DEFINER Function apply_usage_overage (third-party-advisory)