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

CVE-2026-44850: Portainer has a bind-mount restriction bypass via HostConfig.Mounts

May 14, 2026 (updated June 9, 2026)

Portainer offers an environment-level Disable bind mounts for non-administrators security setting that blocks regular users from binding host paths into containers they create through the Portainer-mediated Docker API. The check that enforces this setting only inspected the legacy HostConfig.Binds array on the container-create proxy and never looked at the equivalent HostConfig.Mounts array. Any authenticated user with rights to create containers on a Docker environment where the restriction is enabled could submit a bind-typed entry under HostConfig.Mounts and mount any host path into their container.

The two fields are interchangeable on the Docker daemon — both produce real bind mounts at runtime — so a check that inspects only one is functionally equivalent to no check at all. The same primitive is correctly enforced on Swarm service create against TaskTemplate.ContainerSpec.Mounts; the gap was specific to the POST /containers/create proxy path.

Exploitation requires a regular user with container-create rights on an environment that has the restriction enabled. Such a user can mount any host path read-write or read-only into a container they own and use the resulting view of the host filesystem to read or write anything the Docker daemon’s user can — typically root. Bind-mount restriction is the primary defence against host filesystem exposure on shared environments where regular users are otherwise permitted to deploy containers.

References

  • github.com/advisories/GHSA-7fw3-x4r2-g7wc
  • github.com/portainer/portainer/releases/tag/2.33.8
  • github.com/portainer/portainer/releases/tag/2.39.2
  • github.com/portainer/portainer/releases/tag/2.41.0
  • github.com/portainer/portainer/security/advisories/GHSA-7fw3-x4r2-g7wc
  • nvd.nist.gov/vuln/detail/CVE-2026-44850

Code Behaviors & Features

Detect and mitigate CVE-2026-44850 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 starting from 2.33.0 before 2.33.8, all versions starting from 2.39.0 before 2.39.2, all versions starting from 2.40.0 before 2.41.0

Fixed versions

  • 2.33.8
  • 2.39.2
  • 2.41.0

Solution

Upgrade to versions 2.33.8, 2.39.2, 2.41.0 or above.

Impact 8.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-863: Incorrect Authorization

Source file

go/github.com/portainer/portainer/CVE-2026-44850.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Mon, 15 Jun 2026 00:18:48 +0000.