CVE-2023-0778 Podman Time-of-check Time-of-use (TOCTOU) Race Condition

Medium 6.8 Published Updated

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.

PackageAffectedFixed in
github.com/containers/podman/v4 GoAll versions4.4.2
github.com/containers/podman/v4 GoAll versions4.4.2
github.com/containers/podman/v4 GoAll versions4.4.2
Linux distribution packages (13)
podman SUSE:Enterprise Storage 7.1All versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOSAll versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSSAll versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise Micro 5.1All versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise Micro 5.2All versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise Micro 5.3All versions4.4.4-150400.4.16.1
podman SUSE:Linux Enterprise Micro 5.4All versions4.4.4-150400.4.16.1
podman SUSE:Linux Enterprise Module for Containers 15 SP4All versions4.4.4-150400.4.16.1
podman SUSE:Linux Enterprise Server 15 SP3-LTSSAll versions4.4.4-150300.9.20.1
podman SUSE:Linux Enterprise Server for SAP Applications 15 SP3All versions4.4.4-150300.9.20.1
podman openSUSE:Leap 15.4All versions4.4.4-150400.4.16.1
podman openSUSE:Leap Micro 5.3All versions4.4.4-150400.4.16.1
podman openSUSE:TumbleweedAll versions4.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.

All Redhat Enterprise Linux vulnerabilities

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.

Is CVE-2023-0778 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free