Home

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.

PUBLISHED Reserved 2026-06-19 | Published 2026-06-21 | Updated 2026-06-24 | Assigner VulnCheck




HIGH: 7.2CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N
HIGH: 7.6CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

Problem types

Improper Privilege Management

Product status

Default status
unaffected

Any version before 12.128.2
affected

12.128.2 (semver)
unaffected

Credits

hunt-with-4bh1 reporter

References

github.com/.../capgo/security/advisories/GHSA-qq85-vjrq-m75g exploit

github.com/.../capgo/security/advisories/GHSA-qq85-vjrq-m75g (GHSA Advisory GHSA-qq85-vjrq-m75g) vendor-advisory

www.vulncheck.com/...ty-definer-function-apply-usage-overage (VulnCheck Advisory: Capgo - Privilege Escalation via SECURITY DEFINER Function apply_usage_overage) third-party-advisory

cve.org (CVE-2026-56239)

nvd.nist.gov (CVE-2026-56239)

Download JSON