Description
gemini-bridge is a lightweight MCP server bridging AI agents to Google's Gemini AI via the official CLI. From 1.0.0 until 1.3.1, consult_gemini_with_files in inline mode read any file path supplied in the files argument without confining it to the working directory, then forwarded the contents to the Gemini CLI. Because the caller also controls query, the file contents are echoed back through the Gemini round-trip (and sent to Google), making this an arbitrary local file read. This issue is fixed in version 1.3.1.
Published: 2026-07-31
Score: 6.2 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

gemini-bridge exposes an endpoint that allows the consult_gemini_with_files function to read any file path supplied in the files argument when run in inline mode. The contents of the requested file are then forwarded to the Gemini CLI and echoed back through the AI round‑trip, exposing the attacker to arbitrary local file reads. This vulnerability aligns with CWE‑200 (Information Exposure) and CWE‑22 (Path Traversal), and could allow an adversary to obtain sensitive configuration files, credentials, or other data residing on the host machine.

Affected Systems

Both the eLyiN vendor’s gemini-bridge product from version 1.0.0 up through 1.3.0 inclusive is vulnerable. The issue was resolved in the 1.3.1 release, so any deployment of gemini-bridge prior to that tag must be patched or otherwise mitigated.

Risk and Exploitability

With a CVSS score of 6.2 the vulnerability is considered moderate; the EPSS score of less than 1 % indicates a low likelihood of exploitation, and it is not currently listed in CISA’s KEV catalog. The attack vector is local, requiring the attacker to invoke the vulnerable function on the target host; in many deployments gemini-bridge is accessed locally and would therefore be susceptible if an attacker gains local access or can co‑operate with a legitimate user to supply the file argument.

Generated by OpenCVE AI on August 2, 2026 at 03:49 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade gemini-bridge to version 1.3.1 or later.
  • If upgrading is delayed, configure the application to disable the consult_gemini_with_files inline mode or restrict its use to trusted callers.
  • Run the application with the minimum privileges required and validate any file paths supplied by users to prevent directory traversal.

Generated by OpenCVE AI on August 2, 2026 at 03:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-c5px-58j2-7fqp gemini-bridge vulnerable to arbitrary local file read via consult_gemini_with_files inline mode
History

Wed, 05 Aug 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 02 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Elyin
Elyin gemini-bridge
Vendors & Products Elyin
Elyin gemini-bridge

Fri, 31 Jul 2026 23:00:00 +0000

Type Values Removed Values Added
Description gemini-bridge is a lightweight MCP server bridging AI agents to Google's Gemini AI via the official CLI. From 1.0.0 until 1.3.1, consult_gemini_with_files in inline mode read any file path supplied in the files argument without confining it to the working directory, then forwarded the contents to the Gemini CLI. Because the caller also controls query, the file contents are echoed back through the Gemini round-trip (and sent to Google), making this an arbitrary local file read. This issue is fixed in version 1.3.1.
Title gemini-bridge vulnerable to arbitrary local file read via consult_gemini_with_files inline mode
Weaknesses CWE-200
CWE-22
References
Metrics cvssV3_1

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


Subscriptions

Elyin Gemini-bridge
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-03T16:26:53.194Z

Reserved: 2026-06-15T23:23:57.714Z

Link: CVE-2026-54785

cve-icon Vulnrichment

Updated: 2026-08-03T16:25:08.927Z

cve-icon NVD

Status : Received

Published: 2026-07-31T23:17:25.133

Modified: 2026-08-03T17:16:38.353

Link: CVE-2026-54785

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T20:32:05Z

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')