Rmcnamara-Snyk

#3409of 56,330
79.6Total CVSS
Vulnerabilities · 9
Medium
1
High
5
Critical
3
PT-2024-2232
8.6
2024-03-18
Buildah · Buildah · CVE-2024-1753
**Name of the Vulnerable Software and Affected Versions** Buildah versions prior to the fixed version Podman versions prior to the fixed version **Description** A flaw was found in Buildah and Podman, which allows containers to mount arbitrary locations on the host filesystem into build containers. A malicious Containerfile can use a dummy image with a symbolic link to the host filesystem as a mount source and cause the mount operation to mount the host filesystem during a build-time RUN step. The commands inside the RUN step will then have read-write access to the host filesystem, allowing for full container escape at build time. Users running containers with root privileges are impacted, allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed. **Recommendations** To resolve the issue, apply the patch to Buildah, which will then be vendored into Podman. Ensure selinux controls are in place to avoid compromising sensitive system files and systems. With "setenforce 0" set, the root file system is open for modification with this exploit. With "setenforce 1" set, files cannot be changed, but the contents of the `/` directory can be displayed. As a temporary workaround, consider disabling the `build` function in Podman and Buildah until a patch is available. Restrict access to the `build` command to minimize the risk of exploitation. Avoid using the `--mount=type=bind` option in the `build` command until the issue is resolved.
PT-2024-1467
8.6
2023-11-07
Unknown · Kubernetes Containerd · CVE-2024-21626
**Name of the Vulnerable Software and Affected Versions** runc versions 1.0.0-rc93 through 1.1.11 containerd versions 1.4.7 through 1.6.27 containerd versions 1.7.0 through 1.7.12 Docker versions 20.10.8 through 24.0.8 Docker versions 24.0.9 through 25.0.2 **Description** An internal file descriptor leak in runc, a CLI tool for spawning and running containers on Linux according to the OCI specification, allows for multiple container breakouts. The issue occurs because a file descriptor remains open during the `setcwd(2)` operation, even when `O CLOEXEC` is used on all descriptors before executing container code. This allows a reference to be maintained within the container by configuring the working directory to a path resolved through that file descriptor. Exploitation can occur in several ways: - A newly-spawned container process via `runc exec` can have a working directory in the host filesystem namespace, granting access to the host filesystem. - A malicious image can use `runc run` to gain access to the host filesystem. - Variants of these methods can be used to overwrite semi-arbitrary host binaries, leading to a complete container escape and arbitrary code execution outside the isolated environment. **Recommendations** Update runc to version 1.1.12. Update containerd to version 1.6.28 or 1.7.13. Update Docker to version 24.0.9 or 25.0.2. As a temporary mitigation, close all unneeded file descriptors to prevent the leak from being exploited.