# GHSA-6PQ5-P7FC-7XHQ: Arbitrary host file read via file:// server reference

- Database: GitHub
- Severity: CVSS 6.8 (Medium)
- Published: 2026-07-09
- Modified: 2026-08-19

## Tracked as

- [CVE-2026-76095](https://cve.now/CVE-2026-76095.md): MCP Gateway: Arbitrary host file read via file:// server reference

## Affected versions

- github.com/docker/mcp-gateway (Go): from 0.35.0, fixed in 0.43.1

## Description

### Summary

A server reference beginning with `file://` is read from an arbitrary absolute host path with no confinement to a project/working directory.

### Details

`ResolveServersFromString` routes a `file://` value to `ResolveFile` after stripping the prefix, and `ResolveFile` calls `os.ReadFile` on that path verbatim (`workingset.go`) with no base-directory confinement. An absolute path anywhere on the host is read; only a later content/extension check limits whether the file is accepted as a server definition.

### Impact

A `file://` server reference causes the gateway to read an arbitrary absolute path on the host as a candidate server definition; confidentiality impact is bounded by what is reflected back through the later validation.

### Preconditions

- A `file://` server reference is processed (e.g. via profile/server management); whether untrusted imported content can reach this path depends on deployment.

### Workarounds

- Only accept server references from trusted sources.
- Run the gateway as a low-privilege user without read access to sensitive host files.

### References

- Fix PR: https://github.com/docker/mcp-gateway/pull/509

## References

- https://github.com/docker/mcp-gateway/security/advisories/GHSA-6pq5-p7fc-7xhq

Page: https://cve.now/GHSA-6PQ5-P7FC-7XHQ

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
