Description
Capgo (Cap-go/capgo) before 12.128.2 contains an improper access control vulnerability in the SECURITY DEFINER PostgREST RPC function public.record_build_time, which is granted to the anon role and callable with only the public Supabase publishable (sb_publishable_*) anon key. An unauthenticated attacker can insert rows into public.build_logs for arbitrary organizations and, because the function uses ON CONFLICT (build_id, org_id) DO UPDATE, can overwrite existing usage/billing records by reusing the same build_id for a target org. This enables cross-tenant tampering of billing build logs and financial-impact denial of service by inflating billable build time.
Published: 2026-06-19
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Capgo (Cap‑go/Capgo) before 12.128.2 implements an insecure PostgREST RPC function, public.record_build_time, that is granted to the anon role and can be invoked with only a public Supabase publishable key. The function allows an unauthenticated attacker to insert rows into the public.build_logs table for any organization, and because the statement uses ON CONFLICT (build_id, org_id) DO UPDATE, the attacker can overwrite existing usage and billing records by reusing a build_id for a target organization. The result is cross‑tenant tampering of billing data with the potential to inflate billable build time, creating a financial‑impact denial of service scenario. The vulnerability is a classic improper access control flaw (CWE‑284).

Affected Systems

The affected product is Capgo (Cap‑go/Capgo) running any version prior to 12.128.2. The vulnerability resides in the public.record_build_time RPC, accessible through the anon role via the Supabase publishable sb_publishable_* key. Deployments that use Capgo’s RPC in a Supabase environment and have not upgraded past 12.128.2 are exposed.

Risk and Exploitability

The CVSS score of 8.7 marks this issue as high severity. While an EPSS score is not available, the lack of authentication and the direct ability to write and overwrite billing log entries make exploitation straightforward once the RPC is reachable. The vulnerability is not listed in CISA’s KEV catalog. An attacker can exploit the flaw by sending an unauthenticated RPC request to public.record_build_time, supplying arbitrary organization identifiers and build IDs to influence the financial records of other tenants.

Generated by OpenCVE AI on June 19, 2026 at 23:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Capgo to version 12.128.2 or later, which fixes the access control issue.
  • If an immediate update is not feasible, revoke the anon role’s privilege on public.record_build_time or disable the RPC entirely until a patch can be applied.
  • Ensure that only authorized keys or roles can invoke sensitive RPCs and monitor billing tables for anomalous insertions or updates.

Generated by OpenCVE AI on June 19, 2026 at 23:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 19 Jun 2026 22:15:00 +0000

Type Values Removed Values Added
Description Capgo (Cap-go/capgo) before 12.128.2 contains an improper access control vulnerability in the SECURITY DEFINER PostgREST RPC function public.record_build_time, which is granted to the anon role and callable with only the public Supabase publishable (sb_publishable_*) anon key. An unauthenticated attacker can insert rows into public.build_logs for arbitrary organizations and, because the function uses ON CONFLICT (build_id, org_id) DO UPDATE, can overwrite existing usage/billing records by reusing the same build_id for a target org. This enables cross-tenant tampering of billing build logs and financial-impact denial of service by inflating billable build time.
Title Supabase - Unauthenticated Cross-Tenant Billing Log Tampering via public.record_build_time RPC
Weaknesses CWE-284
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-06-19T21:39:21.619Z

Reserved: 2026-06-18T15:57:20.434Z

Link: CVE-2026-56082

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-19T23:30:05Z

Weaknesses