CVE-2021-3602Medium· 5.5▾ SunlitBuildah processes using chroot isolation may leak environment values to intermediate processes
▾ Sunlit zone — Low / medium · no exploitation signal
impact 30.3 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Jul 9.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
0.3%
Last analysed / modified upstream
When running processes using "chroot" isolation, the process being run can examine the environment variables of its immediate parent and grandparent processes (CVE-2021-3602). This isolation type is often used when running buildah in unprivileged containers, and it is often used to do so in CI/CD environments. If sensitive information is exposed to the original buildah process through its environment, that information will unintentionally be shared with child processes which it starts as part of handling RUN instructions or during buildah run. The commands that buildah is instructed to run can read that information if they choose to.
Users should upgrade packages, or images which contain packages, to include version 1.21.3 or later.
As a workaround, invoking buildah in a container under env -i to have it started with a reinitialized environment should prevent the leakage.
If you have any questions or comments about this advisory:
github.com/containers/buildah < 1.16.8github.com/containers/buildah >= 1.17.0, < 1.17.2github.com/containers/buildah >= 1.18.0, < 1.19.9github.com/containers/buildah >= 1.20.0, < 1.21.3Upgrade to a patched release:
github.com/containers/buildah 1.16.8github.com/containers/buildah 1.17.2github.com/containers/buildah 1.19.9github.com/containers/buildah 1.21.3Connected by shared product, vendor, weakness, or advisory.
CVE-2022-27651Medium· 6.8Non-empty default inheritable capabilities for linux container in Buildah
CVE-2024-11218High· 8.6A vulnerability was found in `podman build` and `buildah.` This issue occurs in a container breakout by using --jobs=2 and a race condition when building a malicious Containerfile
CVE-2026-44517Medium· 6.3Build breakout using malicious Containerfile and Git Smart HTTP server or GitHub release tar archive
CVE-2024-1753High· 8.6Podman affected by CVE-2024-1753 container escape at build time
CVE-2022-1227High· 8.8Podman publishes a malicious image to public registries
CVE-2022-27649High· 7.5Podman's default inheritable capabilities for linux container not empty