# CVE-2026-56239: Capgo - Privilege Escalation via SECURITY DEFINER Function apply_usage_overage

- Severity: High 7.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-21T13:26:52.134Z
- Modified: 2026-11-08T14:05:42.237Z
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- Capgo Capgo: before 12.128.2 (not affected: 12.128.2)

## Every score

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

## References

- <https://github.com/Cap-go/capgo/security/advisories/GHSA-qq85-vjrq-m75g> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/capgo-privilege-escalation-via-security-definer-function-apply-usage-overage> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-56239](https://www.cve.org/CVERecord?id=CVE-2026-56239), CVE Terms of Use, modified 2026-11-08
- NVD: [CVE-2026-56239](https://nvd.nist.gov/vuln/detail/CVE-2026-56239), Public domain, modified 2026-06-24

---

Page: https://cve.day/CVE-2026-56239 · Whole record: https://cve.day/CVE-2026-56239.json · Rebuilt by cve.day 2026-11-25T22:59:25.325Z
