Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/henrygd/beszel
  4. ›
  5. CVE-2026-27734

CVE-2026-27734: Beszel: Docker API has a Path Traversal Vulnerability via Unsanitized Container ID

February 27, 2026

The hub’s authenticated API endpoints GET /api/beszel/containers/logs and GET /api/beszel/containers/info pass the user-supplied “container” query parameter to the agent without validation. The agent constructs Docker Engine API URLs using fmt.Sprintf with the raw value instead of url.PathEscape(). Since Go’s http.Client does not sanitize ../ sequences from URL paths sent over unix sockets, an authenticated user (including readonly role) can traverse to arbitrary Docker API endpoints on agent hosts, exposing sensitive infrastructure details.

References

  • github.com/advisories/GHSA-phwh-4f42-gwf3
  • github.com/henrygd/beszel
  • github.com/henrygd/beszel/commit/311095cfddda113863ca9656cf9e99411be1cef5
  • github.com/henrygd/beszel/releases/tag/v0.18.4
  • github.com/henrygd/beszel/security/advisories/GHSA-phwh-4f42-gwf3
  • nvd.nist.gov/vuln/detail/CVE-2026-27734

Code Behaviors & Features

Detect and mitigate CVE-2026-27734 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.18.4

Fixed versions

  • 0.18.4

Solution

Upgrade to version 0.18.4 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/henrygd/beszel/CVE-2026-27734.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:17:32 +0000.