Description
Capgo before 12.128.2 contains an information disclosure vulnerability in the find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and executable by the anon role. Unauthenticated attackers can call this function via the /rest/v1/rpc/find_apikey_by_value endpoint to retrieve sensitive API key metadata including user_id, mode, org scoping, and expiration details when supplied a valid key value.
Published: 2026-07-11
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Capgo versions prior to 12.128.2 expose sensitive API‑key metadata through a PostgreSQL function named find_apikey_by_value. The function is declared with SECURITY DEFINER and can be invoked by the anon role, allowing an unauthenticated attacker to call the /rest/v1/rpc/find_apikey_by_value endpoint and retrieve user_id, mode, organization scope, and expiration information. This leads to an information‑disclosure flaw as described by CWE‑200, compromising confidentiality of API‑key data.

Affected Systems

Deployments of the Capgo application distributed by Capgo:Capgo are affected. Any installation running a version older than 12.128.2 is vulnerable, regardless of the underlying operating system or PostgreSQL version, unless the RPC endpoint has been otherwise restricted or access has been revoked.

Risk and Exploitability

The CVSS score of 8.7 reflects a high severity impact. The EPSS score is below 1 %, indicating a low probability of exploitation but the vulnerability is still reachable via a straightforward HTTP request to the exposed RPC endpoint. The vulnerability is not included in the CISA KEV catalog, so no publicly known exploits are documented. Attackers do not require authentication or elevated privileges, making the attack path trivial from untrusted networks.

Generated by OpenCVE AI on August 1, 2026 at 11:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Capgo 12.128.2 or later, which fixes the vulnerability.
  • If an immediate upgrade is not possible, disable or restrict the /rest/v1/rpc/find_apikey_by_value endpoint so that only privileged users can invoke it.
  • Apply firewall or reverse‑proxy rules to block unauthenticated HTTP traffic to the RPC endpoint from external networks, allowing only trusted internal sources.

Generated by OpenCVE AI on August 1, 2026 at 11:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 13 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
First Time appeared Cap-go
Cap-go cap-go
Vendors & Products Cap-go
Cap-go cap-go

Sat, 11 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Description Capgo before 12.128.2 contains an information disclosure vulnerability in the find_apikey_by_value PostgreSQL function marked SECURITY DEFINER and executable by the anon role. Unauthenticated attackers can call this function via the /rest/v1/rpc/find_apikey_by_value endpoint to retrieve sensitive API key metadata including user_id, mode, org scoping, and expiration details when supplied a valid key value.
Title Capgo - Unauthenticated API Key Metadata Disclosure via SECURITY DEFINER RPC Function
Weaknesses CWE-200
References
Metrics cvssV3_1

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

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-13T16:11:08.264Z

Reserved: 2026-06-20T12:53:19.893Z

Link: CVE-2026-56303

cve-icon Vulnrichment

Updated: 2026-07-13T16:10:55.407Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T09:15:05Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor