Capgo - Privilege Escalation via SECURITY DEFINER Function apply_usage_overage
Published Jun 21, 2026
7.2
HIGHCVSS 4.0
EPSS 0.35%
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
-
- Version 0StatusaffectedConstraints<12.128.2
- Version 12.128.2StatusunaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
References (3)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-38166 Advisory
- https://github.com/Cap-go/capgo/security/advisories/GHSA-qq85-vjrq-m75g exploitvendor-advisory
- https://www.vulncheck.com/advisories/capgo-privilege-escalation-via-security-definer-function-apply-usage-overage third-party-advisory
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-38166 | Advisory | |
| https://github.com/Cap-go/capgo/security/advisories/GHSA-qq85-vjrq-m75g | exploitvendor-advisory | |
| https://www.vulncheck.com/advisories/capgo-privilege-escalation-via-security-definer-function-apply-usage-overage | third-party-advisory |
Change history (0)
No recorded changes yet.