{"id":"CVE-2026-44881","published":"2026-05-28T21:11:32Z","modified":"2026-05-29T14:47:51Z","title":"Portainer: Arbitrary File Read via Git Symlink Injection in Stack Auto-Update","vendor":"portainer","product":"portainer","tier":"tail","description":{"text":"Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments. From 2.33.0 to before 2.33.8, 2.39.2, and 2.41.0, Portainer supports deploying stacks from Git repositories. When a Git-backed stack is created or updated, Portainer clones the repository using go-git v5, which translates Git blob entries with mode 0o120000 (symlink) into real OS symlinks on the host filesystem via os.Symlink. The only entry blocked from becoming a symlink is .gitmodules; every other path is created as a symlink without validation. Portainer's GET /api/stacks/{id}/file endpoint then reads the stack entry point with os.ReadFile, which follows OS symlinks transparently. A repository containing docker-compose.yml as a symlink to an arbitrary filesystem path causes the symlink target's contents to be returned verbatim in the HTTP response. Any authenticated user with rights to create or update a Git-backed stack — the default configuration in Portainer CE — can read arbitrary files accessible to the Portainer process. This vulnerability is fixed in 2.33.8, 2.39.2, and 2.41.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00585,"percentile":0.41928,"provenance":"source"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/portainer/portainer/security/advisories/GHSA-rpgq-m5fp-32wr","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":8.39},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"portainer","affectedVersions":[{"vendor":"portainer","product":"portainer","versions":[">= 2.33.0, < 2.33.8",">= 2.39.0, < 2.39.2",">= 2.40.0, < 2.41.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-29T14:47:30.082612Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/portainer/portainer","vulnerableRanges":[">=2.33.0, <2.33.8",">=2.39.0, <2.39.2",">=2.40.0, <2.41.0","all versions"],"patched":["2.33.8","2.39.2","2.41.0"],"from":["GHSA-rpgq-m5fp-32wr","GO-2026-5633"],"provenance":"source"}],"summary":{"text":"Portainer Community Edition's Git-backed stack deployment, which clones repositories via go-git v5 and creates symlinks from repository entries without validation, allows a symlink named docker-compose.yml to be created on the host. The stack file retrieval endpoint then follows that symlink with os.ReadFile, so an attacker who can reach the Portainer API with an authenticated account that is permitted to create or update Git-backed stacks, which is the default in Portainer CE, can read arbitrary files accessible to the Portainer process over the network without any user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:13Z"},"euvd":{"id":"EUVD-2026-33065","exploited":false,"provenance":"source"}}