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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.5
- **CVSS:** 8.5 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: High; Availability impact on other systems: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.58% (percentile 42, 2026-11-30)
- **CWE:** CWE-59, CWE-200
- **Aliases:** GHSA-rpgq-m5fp-32wr, GO-2026-5633
- **Published:** 2026-05-14T16:23:56.000Z
- **Modified:** 2026-07-21T10:10:00.103Z

## Who should check

- Projects that depend on Go package github.com/portainer/portainer (\>= 2.33.0, \< 2.33.8)
- Anyone running portainer \>= 2.33.0, \< 2.33.8; \>= 2.39.0, \< 2.39.2; \>= 2.40.0, \< 2.41.0

## 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.

## Affected and fixed versions

- Go `github.com/portainer/portainer`: affected \>= 2.33.0, \< 2.33.8; fixed 2.33.8, 2.39.2, 2.41.0 (osv)
- portainer: \>= 2.33.0, \< 2.33.8; \>= 2.39.0, \< 2.39.2; \>= 2.40.0, \< 2.41.0 (cvelist)

## Mitigation

- Upgrade github.com/portainer/portainer to one of 2.33.8, 2.39.2, 2.41.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-44881. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-44881.md
Affected: github.com/portainer/portainer >= 2.33.0, < 2.33.8
Fixed in: 2.33.8, 2.39.2, 2.41.0

Steps:
1. Search this machine and project for github.com/portainer/portainer (Go), portainer: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-44881 being exploited?

There is no confirmed exploitation: CVE-2026-44881 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.58% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2026-44881?

High: CVSS 8.5 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2026-44881?

github.com/portainer/portainer \>= 2.33.0, \< 2.33.8.

### Is there a fix for CVE-2026-44881?

Yes. Fixed in 2.33.8, 2.39.2, 2.41.0. Upgrade github.com/portainer/portainer to one of 2.33.8, 2.39.2, 2.41.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-44881?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/portainer/portainer/security/advisories/GHSA-rpgq-m5fp-32wr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-44881>
- other: <https://github.com/portainer/portainer>
- other: <https://github.com/portainer/portainer/releases/tag/2.33.8>
- other: <https://github.com/portainer/portainer/releases/tag/2.39.2>
- other: <https://github.com/portainer/portainer/releases/tag/2.41.0>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-44881>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rpgq-m5fp-32wr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-5633> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-44881> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-44881>
