PoC Monitor
← All CVEs
CVE-2026-44881published 28 May 2026 21:11 UTCData: JSON · API

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.

First public PoC 19 daysafter publication · 16 Jun 2026
Public PoCs11 on GitHub
CVSS9.9critical · scored by NVD · CWE-59
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

portainer portainer
  • >= 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

Timeline

Days relative to CVE publication
-3t=0+3+6+9+12+15+18CVE published28 May 2026 · t = 0First public PoC16 Jun 2026 · t+19d

First 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
RepositoryCreatedStarsAssessment
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 repo

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" in application/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" in application/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" in application/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.

GET /$f
(?i)^/\$f(?:[?#].*)?$
GET /api/endpoints
(?i)^/api/endpoints(?:[?#].*)?$
GET /api/stacks
(?i)^/api/stacks(?:[?#].*)?$
GET /api/stacks/{var}/file
(?i)^/api/stacks/[^/?#]*/file(?:[?#].*)?$
GET /objects/$prefix/$rest
(?i)^/objects/\$prefix/\$rest(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /$f
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;)
GET /api/endpoints
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;)
GET /api/stacks
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;)
GET /api/stacks/{var}/file
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;)
GET /objects/$prefix/$rest
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.

GET /$f
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
GET /api/endpoints
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
GET /api/stacks
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
GET /api/stacks/{var}/file
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
GET /objects/$prefix/$rest
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