{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.39.0"
                  },
                  {
                    "fixed": "2.39.9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "2.40.0"
                  },
                  {
                    "fixed": "2.45.4"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "52f82e7c7eec08fa4b421cd423798b8966e13857"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "d817b8762b8144ff5de2bf8d3201578d3d9d106f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "2.45.4",
                "range": [
                  {
                    "fixed": "505380c8eecff08cf513c457494bde91634db9ff"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0f99e298f325d5eee2ecc798598ba45e2350eab0"
            },
            {
              "fixed": "f0f84795f1f9925db0735aaffd40cdf054b157fb"
            },
            {
              "introduced": "6c863bfa6787a91ab0cb45c432b53e7bf80c78f8"
            },
            {
              "fixed": "505380c8eecff08cf513c457494bde91634db9ff"
            },
            {
              "fixed": "52f82e7c7eec08fa4b421cd423798b8966e13857"
            },
            {
              "fixed": "d817b8762b8144ff5de2bf8d3201578d3d9d106f"
            }
          ],
          "repo": "https://github.com/portainer/portainer",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6c57-xm2f-23fg"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-639"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134804.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "3.1.0"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      }
    ]
  },
  "details": "Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 contains an authorization bypass vulnerability that allows Standard users to access other users' containers via the WebSocket attach and exec endpoints. Attackers with shared environment access can use leaked container or exec IDs to hijack sessions over /api/websocket/attach or /api/websocket/exec, gaining interactive root shells.",
  "id": "CVE-2026-134804",
  "modified": "2026-11-22T22:45:59.906468624Z",
  "published": "2026-11-22T21:22:31.892Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134804.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/portainer/portainer"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/attach.go#L42-L92"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/portainer/portainer/blob/2.45.3/api/http/handler/websocket/exec.go#L45-L96"
    },
    {
      "type": "FIX",
      "url": "https://github.com/portainer/portainer/commit/52f82e7c7eec08fa4b421cd423798b8966e13857"
    },
    {
      "type": "FIX",
      "url": "https://github.com/portainer/portainer/commit/d817b8762b8144ff5de2bf8d3201578d3d9d106f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/portainer/portainer/releases/tag/2.45.4"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/portainer/portainer/security/advisories/GHSA-6c57-xm2f-23fg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-134804"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/portainer-2.39.0-before-2.39.9-2.40.0-before-2.45.4-and-3.0.0-before-3.1.0-authorization-bypass-via-websocket-attach-and-exec"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Portainer 2.39.0 before 2.39.9, 2.40.0 before 2.45.4, and 3.0.0 before 3.1.0 Authorization Bypass via WebSocket Attach and Exec"
}