CVE-2023-0778 Podman Time-of-check Time-of-use (TOCTOU) Race Condition
A race condition in Podman allows attackers to replace files with symlinks during volume export, enabling arbitrary host file access.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-0778?
CVE-2023-0778 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 27 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
A Time-of-check Time-of-use (TOCTOU) flaw was found in podman. This issue may allow a malicious user to replace a normal file in a volume with a symlink while exporting the volume, allowing for access to arbitrary files on the host file system.
Weakness: CWE-367
Which versions are affected by CVE-2023-0778?
3 open source packages ship an affected version, including github.com/containers/podman/v4. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
github.com/containers/podman/v4 Go | All versions | 4.4.2 |
github.com/containers/podman/v4 Go | All versions | 4.4.2 |
github.com/containers/podman/v4 Go | All versions | 4.4.2 |
Linux distribution packages (13)
podman SUSE:Enterprise Storage 7.1 | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise Micro 5.1 | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise Micro 5.2 | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise Micro 5.3 | All versions | 4.4.4-150400.4.16.1 |
podman SUSE:Linux Enterprise Micro 5.4 | All versions | 4.4.4-150400.4.16.1 |
podman SUSE:Linux Enterprise Module for Containers 15 SP4 | All versions | 4.4.4-150400.4.16.1 |
podman SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 4.4.4-150300.9.20.1 |
podman SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 4.4.4-150300.9.20.1 |
podman openSUSE:Leap 15.4 | All versions | 4.4.4-150400.4.16.1 |
podman openSUSE:Leap Micro 5.3 | All versions | 4.4.4-150400.4.16.1 |
podman openSUSE:Tumbleweed | All versions | 4.4.2-1.1 |
Products include Podman Project Podman, Redhat Enterprise Linux.
How do I fix CVE-2023-0778?
Upgrade github.com/containers/podman/v4 to 4.4.2 or later.
Is CVE-2023-0778 being exploited?
There is no known exploitation of CVE-2023-0778 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2026-57231 Podman: Malformed Image can trick podman run into leaking host environment variables into the container
- CVE-2022-2738 Use after free in podman
- CVE-2022-2989 Podman's incorrect handling of the supplementary groups may lead to data disclosure, modification
- CVE-2021-20188 Improper Authorization in github.com/containers/libpod
- CVE-2019-25067 Podman/Varlink API Privilege Escalation
Sources
Also known as AZL-39612, AZL-43612, AZL-45381, BELL-CVE-2023-0778, DEBIAN-CVE-2023-0778, GHSA-qwqv-rqgf-8qh8 and 5 more.