<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Portainer — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/portainer/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Thu, 14 May 2026 16:37:50 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/portainer/feed.xml" rel="self" type="application/rss+xml"/><item><title>Portainer JWT Leak via URL Query Parameter</title><link>https://feed.craftedsignal.io/briefs/2026-05-portainer-jwt-leak/</link><pubDate>Thu, 14 May 2026 16:37:50 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-portainer-jwt-leak/</guid><description>Portainer's authentication middleware accepts JWT bearer tokens passed as the `?token=&lt;JWT&gt;` URL query parameter on any authenticated API endpoint, leading to JWT leakage to logs and referrers, where a leaked token grants the full privileges of the user it was issued to, until the token expires.</description><content:encoded><![CDATA[<p>Portainer is vulnerable to JWT leakage due to accepting tokens via the <code>?token=&lt;JWT&gt;</code> URL query parameter. This vulnerability, present since the introduction of JWT authentication, allows the JWT to be exposed in reverse proxy logs, browser history, and HTTP Referer headers. The <code>?token=</code> parameter was used by Portainer&rsquo;s browser-based container attach, exec, and pod shell features, impacting any user with exec or attach rights. The issue was reported on 2026-03-06, and fixed in versions 2.33.8, 2.39.2, and 2.41.0. Exploitation requires an attacker to obtain a leaked token, but once obtained, it grants the privileges of the user it was issued to, including administrative access.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>A user authenticates to Portainer, receiving a JWT.</li>
<li>The user initiates a container attach, exec, or pod shell operation, triggering a request to Portainer that includes the JWT as a <code>?token=</code> query parameter.</li>
<li>The request is processed by Portainer&rsquo;s authentication middleware, which accepts the JWT from the query parameter.</li>
<li>The request, including the JWT in the URL, is logged by a reverse proxy or other network monitoring tool.</li>
<li>Alternatively, the user navigates to an external site from within the Portainer UI, causing the JWT to be sent in the Referer header.</li>
<li>An attacker gains access to the logs or intercepts the Referer header, obtaining the leaked JWT.</li>
<li>The attacker uses the leaked JWT to authenticate to the Portainer API, impersonating the original user.</li>
<li>If the compromised token belongs to an administrator, the attacker gains full API access, including user management, container exec, and stack deployment, potentially compromising the host filesystem of managed environments.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability can lead to significant data breaches and system compromise. Leaked tokens can be captured by intermediate systems like reverse proxies, exposing the full JWT in plaintext. URLs containing <code>?token=</code> are recorded in browser history and forwarded in the <code>Referer</code> header. An attacker with a leaked JWT can act as the authenticated user for the remainder of the token&rsquo;s validity, gaining full API access, including user management, container exec, and stack deployment. If the leaked token belongs to an administrator, the attacker gains full control over Portainer and its managed environments.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Portainer to version 2.33.8, 2.39.2, or 2.41.0 or later to remediate the vulnerability as outlined in the advisory.</li>
<li>Implement reverse proxy rules to strip the <code>?token=</code> parameter from requests before they reach Portainer, as mentioned in the workarounds, but be aware this breaks container attach/exec until Portainer is patched.</li>
<li>Audit existing logs for occurrences of <code>?token=</code> or <code>&amp;token=</code> as mentioned in the workarounds, and treat any captured JWT as compromised by resetting affected user passwords.</li>
<li>Deploy the Sigma rule &ldquo;Detect Portainer JWT Parameter in Web Logs&rdquo; to identify potential token leaks in web server logs.</li>
<li>Deploy the Sigma rule &ldquo;Detect Portainer API Access Using Leaked JWT&rdquo; to identify API access attempts using leaked JWTs.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>jwt</category><category>token-leak</category><category>credential-access</category><category>CVE-2026-44883</category><category>portainer</category></item><item><title>Portainer Endpoint Security Bypass via Docker Swarm Service API</title><link>https://feed.craftedsignal.io/briefs/2026-05-portainer-swarm-bypass/</link><pubDate>Thu, 14 May 2026 16:37:27 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-portainer-swarm-bypass/</guid><description>Portainer is vulnerable to an endpoint security bypass via Swarm service create/update, enabling non-admin users with access to a Docker Swarm endpoint to bypass `EndpointSecuritySettings` restrictions and gain elevated privileges such as configuring services with elevated Linux capabilities, disabling syscall filtering and AppArmor confinement, setting arbitrary sysctl values, and mounting arbitrary host paths.</description><content:encoded><![CDATA[<p>Portainer enforces <code>EndpointSecuritySettings</code> restrictions to limit container configurations for non-admin users. However, these restrictions are not fully applied when creating or updating Docker Swarm services through the Portainer API. A non-admin user with access to a Docker Swarm endpoint can bypass these security measures by using the <code>POST /services/create</code> or <code>POST /services/{id}/update</code> endpoints. This bypass allows the user to escalate privileges, gaining capabilities such as mounting arbitrary host paths, elevating Linux capabilities (e.g., <code>CAP_SYS_ADMIN</code>), disabling syscall filtering, and disabling AppArmor confinement. The vulnerability affects all Portainer releases with Docker Swarm support prior to versions 2.33.8, 2.39.2, and 2.41.0, undermining the administrator&rsquo;s security policy on Swarm-enabled endpoints. The volume driver local-bind variant was disclosed on 2026-03-12, and the Swarm service create/update bypass was disclosed on 2026-04-05.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated, non-admin user gains access to a Docker Swarm endpoint via Portainer RBAC.</li>
<li>The user crafts a <code>POST /services/create</code> request to create a new service, bypassing capability, sysctl, and security-opt checks.</li>
<li>Alternatively, the user creates a benign service and then sends a <code>POST /services/{id}/update</code> request to modify the service, bypassing all security checks.</li>
<li>The request includes configurations to elevate Linux capabilities (e.g., <code>CapabilityAdd: [&quot;ALL&quot;]</code>), disable syscall filtering (<code>Privileges.Seccomp.Mode: &quot;unconfined&quot;</code>), or disable AppArmor confinement (<code>Privileges.AppArmor.Mode: &quot;disabled&quot;</code>).</li>
<li>The request may also include configurations for arbitrary sysctl values inside the container namespace, and/or bind mounts of any host path, including sensitive paths such as <code>/</code>, <code>/var/run/docker.sock</code>, or SSH keys.</li>
<li>The Docker daemon creates or updates the service with the elevated privileges, bypassing Portainer&rsquo;s intended security restrictions.</li>
<li>The attacker can then leverage the elevated privileges to access the host filesystem (e.g., via <code>chroot /host</code>) or perform other actions with root-equivalent access on the Swarm manager host.</li>
<li>The final objective is to gain unauthorized access to sensitive data or systems, or to disrupt services running on the Docker Swarm cluster.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows a non-admin Portainer user to escalate privileges and gain root-equivalent access on the Swarm manager host. This bypasses the administrator&rsquo;s security policy and enables the attacker to perform actions such as accessing sensitive data, modifying system configurations, or disrupting services. The impact is significant because it undermines the security model of Portainer and Docker Swarm, potentially leading to unauthorized access to critical infrastructure and data. The vulnerability affects every Portainer release with Docker Swarm support prior to versions 2.33.8, 2.39.2, and 2.41.0.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade Portainer to versions 2.33.8, 2.39.2, or 2.41.0 to remediate CVE-2026-44849.</li>
<li>Until an upgrade can be performed, temporarily revoke Swarm endpoint access for non-admin users via Portainer RBAC, as described in the advisory.</li>
<li>Implement a daemon-side allowlist to block the creation of local-driver volumes that use <code>type: none</code> / <code>o: bind</code> on untrusted endpoints, mitigating the volume-driver-bind variant of the vulnerability.</li>
<li>Deploy the Sigma rules provided in this brief to your SIEM to detect exploitation attempts targeting the Portainer API.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>portainer</category><category>docker</category><category>swarm</category><category>privilege-escalation</category><category>vulnerability</category><category>CVE-2026-44849</category></item><item><title>Portainer Arbitrary File Read via Git Symlink Injection</title><link>https://feed.craftedsignal.io/briefs/2026-05-portainer-git-symlink-read/</link><pubDate>Thu, 14 May 2026 16:30:14 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-portainer-git-symlink-read/</guid><description>Portainer is vulnerable to an arbitrary file read vulnerability due to Git symlink injection when deploying stacks from Git repositories, allowing authenticated users to read sensitive files accessible to the Portainer process.</description><content:encoded><![CDATA[<p>Portainer is susceptible to an arbitrary file read vulnerability (CVE-2026-44881) stemming from Git symlink injection during stack deployment from Git repositories. An attacker with the ability to create or update Git-backed stacks can exploit this flaw. The vulnerability arises because Portainer uses <code>go-git</code> v5 to clone Git repositories, which translates Git symlink entries into OS symlinks without proper validation, except for <code>.gitmodules</code>. By crafting a repository containing a <code>docker-compose.yml</code> file that is a symbolic link to a sensitive file (e.g., <code>/etc/passwd</code>, Kubernetes service account token), an attacker can trick Portainer into reading and disclosing the contents of the linked file via the <code>GET /api/stacks/{id}/file</code> endpoint. Git-stack auto-update amplifies the issue by allowing deferred exploitation through a malicious commit that replaces <code>docker-compose.yml</code> with a symlink. This vulnerability affects Portainer releases from the introduction of Git-based stack deployment until the fixes in versions 2.33.8, 2.39.2, and 2.41.0.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker creates a Git repository with a <code>docker-compose.yml</code> file configured as a symbolic link to a sensitive file (e.g., <code>/etc/passwd</code>).</li>
<li>The attacker uses the Portainer API or web interface to create a new stack, specifying the attacker-controlled Git repository as the source.</li>
<li>Portainer clones the Git repository using <code>go-git</code>, which creates the symlink on the filesystem.</li>
<li>An authenticated user (admin or non-admin, depending on configuration) triggers the file read by accessing the stack through Portainer&rsquo;s <code>GET /api/stacks/{id}/file</code> endpoint.</li>
<li>Portainer reads the <code>docker-compose.yml</code> file, which resolves to the attacker-specified target file due to the presence of the symlink.</li>
<li>The contents of the sensitive file are returned in the HTTP response to the user who initiated the request.</li>
<li>If auto-update is enabled, an attacker can push a malicious commit to an existing legitimate repository to replace the <code>docker-compose.yml</code> file with a symbolic link.</li>
<li>The file read is then triggered on the next scheduled update cycle with no further interaction required, leaking sensitive data without further user action.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability allows an attacker to read arbitrary files accessible to the Portainer process, typically running as root in containerized deployments. This includes sensitive files such as <code>/etc/shadow</code>, <code>/root/.ssh/*</code>, <code>/proc/self/environ</code>, and the Portainer BoltDB (<code>portainer.db</code>) containing user password hashes, API tokens, and agent credentials. In Kubernetes environments, the attacker can read the cluster service account token mounted at <code>/var/run/secrets/kubernetes.io/serviceaccount/token</code>, granting the attacker the Portainer pod&rsquo;s cluster API access. Similarly, Docker Swarm secrets mounted into the Portainer container at <code>/run/secrets/</code> can be exposed. These leaked credentials can lead to onward compromise of managed Docker/Kubernetes environments, container registries, and Portainer itself.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade to Portainer version 2.33.8, 2.39.2, or 2.41.0, where the vulnerability is fixed.</li>
<li>Disable <strong>Allow non-admin users to manage their stacks</strong> in environment settings to restrict stack creation to administrators, reducing the attack surface.</li>
<li>Carefully review and avoid deploying Git-backed stacks from untrusted repositories.</li>
<li>Disable auto-update on existing stacks to prevent deferred exploitation.</li>
<li>Deploy the Sigma rule <code>Detect Portainer Stack File Access to Sensitive Paths</code> to identify requests accessing sensitive files through the stack file endpoint.</li>
<li>Audit existing stack working directories for unexpected symlink entries under <code>/data/compose/</code> (or your configured data directory) using <code>find /data/compose -type l</code>.</li>
<li>Patch CVE-2026-44881 across all Portainer instances.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>git</category><category>symlink</category><category>file-read</category><category>portainer</category><category>cve-2026-44881</category><category>vulnerability</category></item></channel></rss>