# CVE-2026-44881: Portainer: Arbitrary File Read via Git Symlink Injection in Stack Auto-Update

- Severity: High 8.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-14T16:23:56.000Z
- Modified: 2026-07-21T10:10:00.103Z
- Also known as: GHSA-rpgq-m5fp-32wr, GO-2026-5633
- Weaknesses: CWE-59, CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- portainer portainer: >= 2.33.0, < 2.33.8; >= 2.39.0, < 2.39.2; >= 2.40.0, < 2.41.0; from 2.33.0 before 2.33.8; from 2.34.0 before 2.39.2; 2.40.0
- github.com/portainer/portainer (Go): from 2.33.0 before 2.33.8; from 2.39.0 before 2.39.2; from 2.40.0 before 2.41.0; all versions

## Every score

- GitHub_M: CVSS:4.0 8.5 High `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`
- GitHub: CVSS:3.1 9.9 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/portainer/portainer/security/advisories/GHSA-rpgq-m5fp-32wr> (exploit, advisory, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-44881> (advisory)
- <https://github.com/portainer/portainer> (package)
- <https://github.com/portainer/portainer/releases/tag/2.33.8> (web)
- <https://github.com/portainer/portainer/releases/tag/2.39.2> (web)
- <https://github.com/portainer/portainer/releases/tag/2.41.0> (web)

## Sources

- CVE List: [CVE-2026-44881](https://www.cve.org/CVERecord?id=CVE-2026-44881), CVE Terms of Use, modified 2026-05-29
- GitHub Advisory Database: [GHSA-rpgq-m5fp-32wr](https://github.com/advisories/GHSA-rpgq-m5fp-32wr), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5633](https://pkg.go.dev/vuln/GO-2026-5633), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-44881](https://nvd.nist.gov/vuln/detail/CVE-2026-44881), Public domain, modified 2026-07-21

---

Page: https://cve.day/CVE-2026-44881 · Whole record: https://cve.day/CVE-2026-44881.json · Rebuilt by cve.day 2026-11-25T22:59:23.080Z
