CVE-2026-56239
Received Received - Intake
Privilege Escalation in Capgo via Billing Function

Publication date: 2026-06-21

Last updated on: 2026-06-21

Assigner: VulnCheck

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-21
Last Modified
2026-06-21
Generated
2026-06-21
AI Q&A
2026-06-21
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
cap-go capgo to 12.128.2 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-269 The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability allows unauthorized users to manipulate sensitive billing data for arbitrary organizations, including unauthorized credit depletion and fraudulent billing events.

Such unauthorized access and manipulation of billing data could lead to violations of data protection and financial integrity requirements found in common standards and regulations like GDPR and HIPAA, which mandate strict access controls and data integrity safeguards.

Because the function bypasses internal authorization checks and Row Level Security, it undermines the enforcement of proper access controls, potentially exposing organizations to compliance risks related to unauthorized data access and financial fraud.

Executive Summary

CVE-2026-56239 is a privilege escalation vulnerability in Capgo versions before 12.128.2. It exists in the public.apply_usage_overage SECURITY DEFINER function, which performs sensitive billing operations without proper authorization checks.

This function runs with the privileges of its owner, bypassing Row Level Security protections. It does not validate the user's identity, organization membership, or minimum rights before executing billing operations.

If EXECUTE permission is granted to authenticated or anonymous roles, an attacker with valid credentials could invoke this function via Supabase RPC to manipulate billing data for any organization, including unauthorized credit depletion and fraudulent billing event insertion.

Impact Analysis

This vulnerability can lead to unauthorized manipulation of billing data for arbitrary organizations.

  • Attackers could deplete credits without authorization.
  • Fraudulent overage events could be inserted, causing financial damage.
  • It allows privilege escalation by bypassing Row Level Security, potentially compromising sensitive billing operations.
Detection Guidance

Detection of this vulnerability involves checking if the public.apply_usage_overage SECURITY DEFINER function exists and whether EXECUTE permissions are granted to the authenticated or anon roles. Since the function can be invoked via Supabase RPC, monitoring RPC calls to this function for unusual or unauthorized usage can help detect exploitation attempts.

You can run SQL queries to inspect permissions and function definitions, for example:

  • Check if the function exists: SELECT proname FROM pg_proc WHERE proname = 'apply_usage_overage';
  • Check EXECUTE privileges on the function: SELECT grantee FROM information_schema.role_routine_grants WHERE routine_name = 'apply_usage_overage' AND privilege_type = 'EXECUTE';
  • Audit Supabase RPC logs for calls to apply_usage_overage from authenticated or anon roles.
Mitigation Strategies

Immediate mitigation steps include upgrading Capgo to version 12.128.2 or later, where the vulnerability has been patched.

If upgrading is not immediately possible, restrict EXECUTE permissions on the public.apply_usage_overage function to trusted roles only, removing EXECUTE privileges from authenticated and anon roles.

Additionally, review and tighten Supabase RPC permissions to prevent unauthorized invocation of this function.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56239. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart