Portainer
Portainer: Arbitrary File Read via Git Symlink Injection in Stack Auto-Update
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 2.33.0, < 2.33.8
- >= 2.39.0, < 2.39.2
- >= 2.40.0, < 2.41.0
Fixed in 2.33.8, 2.39.2, 2.41.0
Mitigation
Upgrade portainer to 2.33.8 or 2.39.2 or 2.41.0 or later.
References
- Vendor advisory github.com/portainer/portainer/security/adviso…
Timeline
Days relative to CVE publicationFirst public PoC 19 days after publication; not in CISA KEV. First PoC: 0xdak/CVE-2026-44881_exploit (created 16 Jun 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 0xdak/CVE-2026-44881_exploit | 16 Jun 2026 +19 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /$f
- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:111
GET /api/endpoints
- Key headers
Authorization: Bearer {var}- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:189
GET /api/stacks
- Key headers
Authorization: Bearer {var}- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:229
GET /api/stacks/{var}/file
- Key headers
Authorization: Bearer {var}- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:251
GET /objects/$prefix/$rest
- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:121
POST /api/auth
- Body markers
"Username""Password"inapplication/json- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:183
POST /api/stacks/create/standalone/repository
- Query
endpointId=- Key headers
Authorization: Bearer {var}- Body markers
"Name""RepositoryURL""RepositoryReferenceName":"refs/heads/master""ComposeFile":"docker-compose.yml""RepositoryAuthentication"inapplication/json- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:224
PUT /api/stacks/{var}/git/redeploy
- Query
endpointId=- Key headers
Authorization: Bearer {var}- Body markers
"env""prune""pullImage"inapplication/json- Ports
- 9000
- Seen in
- 1 repo: 0xdak/CVE-2026-44881_exploit
- Evidence
- 0xdak/CVE-2026-44881_exploit/exploit.sh:243
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/\$f(?:[?#].*)?$
(?i)^/api/endpoints(?:[?#].*)?$
(?i)^/api/stacks(?:[?#].*)?$
(?i)^/api/stacks/[^/?#]*/file(?:[?#].*)?$
(?i)^/objects/\$prefix/\$rest(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [9000] (msg:"GG PoC-Monitor CVE-2026-44881 portainer portainer exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/$f"; reference:url,poc.griffinguard.io/cve/CVE-2026-44881; classtype:web-application-attack; sid:9264457; rev:1;)
alert http any any -> $HOME_NET [9000] (msg:"GG PoC-Monitor CVE-2026-44881 portainer portainer exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/endpoints"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-44881; classtype:web-application-attack; sid:9718964; rev:1;)
alert http any any -> $HOME_NET [9000] (msg:"GG PoC-Monitor CVE-2026-44881 portainer portainer exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/stacks"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-44881; classtype:web-application-attack; sid:9470731; rev:1;)
alert http any any -> $HOME_NET [9000] (msg:"GG PoC-Monitor CVE-2026-44881 portainer portainer exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/api/stacks/"; http.uri; content:"/file"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-44881; classtype:web-application-attack; sid:9743828; rev:1;)
alert http any any -> $HOME_NET [9000] (msg:"GG PoC-Monitor CVE-2026-44881 portainer portainer exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/objects/$prefix/$rest"; reference:url,poc.griffinguard.io/cve/CVE-2026-44881; classtype:web-application-attack; sid:9566375; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: portainer portainer exploit attempt (CVE-2026-44881)
id: gg-pocmon-cve-2026-44881-9264457
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44881. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44881
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/$f'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44881
title: portainer portainer exploit attempt (CVE-2026-44881)
id: gg-pocmon-cve-2026-44881-9718964
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44881. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44881
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/endpoints'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44881
title: portainer portainer exploit attempt (CVE-2026-44881)
id: gg-pocmon-cve-2026-44881-9470731
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44881. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44881
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/stacks'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44881
title: portainer portainer exploit attempt (CVE-2026-44881)
id: gg-pocmon-cve-2026-44881-9743828
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44881. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44881
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/api/stacks/'
- '/file'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44881
title: portainer portainer exploit attempt (CVE-2026-44881)
id: gg-pocmon-cve-2026-44881-9566375
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-44881. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-44881
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/objects/$prefix/$rest'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.44881