Back

HIGH

Capgo - Privilege Escalation via SECURITY DEFINER Function apply_usage_overage

Published Jun 21, 2026

Description

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.

Affected products

Remediation

No remediation recorded yet.

References (3)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner VulnCheck
Published Jun 21, 2026
Updated Jun 24, 2026
Reserved Jun 19, 2026
CISA Vulnrichment
Updated Jun 24, 2026
NVD
Status Deferred
Modified Jun 24, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner VulnCheck
Published Jun 21, 2026
Updated Jun 24, 2026
Exploited since n/a
EUVD-2026-38166