PT-2026-51220 · Cap Go · Cap-Go
CVSS v3.1
7.6
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
Name of the Vulnerable Software and Affected Versions
Capgo versions prior to 12.128.2
Description
A privilege escalation issue exists in the
public.apply usage overage function. This function is defined as SECURITY DEFINER, meaning it executes with the privileges of the user who created it, thereby bypassing Row Level Security (RLS). The function performs sensitive billing operations but fails to enforce internal authorization checks, such as validating auth.uid(), organization membership, or check min rights. If EXECUTE permissions are granted to authenticated or anonymous roles, an authenticated user can invoke the function via Supabase RPC to manipulate billing data for any organization, leading to fraudulent overage event insertion and unauthorized credit depletion.Recommendations
Update to version 12.128.2 or later.
As a temporary workaround, restrict EXECUTE permissions on the
public.apply usage overage function to prevent unauthorized access by authenticated or anonymous roles.Exploit
Fix
LPE
Improper Privilege Management
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Cap-Go