GHSA-fh2f-xfxc-q9cc

Suggest an improvement
Source
https://github.com/advisories/GHSA-fh2f-xfxc-q9cc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-fh2f-xfxc-q9cc/GHSA-fh2f-xfxc-q9cc.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-fh2f-xfxc-q9cc
Aliases
Published
2026-07-28T22:20:51Z
Modified
2026-08-18T15:10:40Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N CVSS Calculator
Summary
openhole-server vulnerable to path traversal via URL-decoded request path
Details

Summary

openhole-server forwarded the URL-decoded request path (r.URL.Path) to tunnel clients instead of the original request-target. Percent-encoded dot-segments (%2e) and separators (%2f) were decoded to ../ and / before reaching the local service.

Go's ServeMux rejects literal ../ paths, but percent-encoded traversal sequences bypassed this and were delivered to backends as working path traversal.

Impact

An unauthenticated remote attacker could read files outside the published web root on tunneled local services that resolve paths without canonicalization.

Example:

  • /%2e%2e/secret.txt → file outside web root
  • /%2e%2e/%2e%2e/etc/passwd → sensitive files

Encoded slashes (/a%2fb) could also bypass path-based access controls.

Fix

v0.1.2 forwards r.URL.EscapedPath() on the server and preserves the request-target on the CLI client.

Users should upgrade both openhole-server and the openhole CLI to v0.1.2 or later.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-28T22:20:51Z",
    "nvd_published_at": null,
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/bablilayoub/openhole

Package

Name
github.com/bablilayoub/openhole
View open source insights on deps.dev
Purl
pkg:golang/github.com/bablilayoub/openhole

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.1.2

Database specific

last_known_affected_version_range
"<= 0.1.1"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-fh2f-xfxc-q9cc/GHSA-fh2f-xfxc-q9cc.json"