CVE-2021-3602
lowPriorität · verfolgen · 22EPSS 0.003 · 26. PerzentilDEEUUSEPSS · bewertet 2026-10-27
An information disclosure flaw was found in Buildah, when building containers using chroot isolation. Running processes in container builds (e.g. Dockerfile RUN commands) can access environment variables from parent and grandparent processes. When run in a container in a CI/CD environment, environment variables may include sensitive information that was shared with the container in order to be used only by Buildah itself (e.g. container registry credentials).
cvss
Technischer Schweregrad, 0–10. Eine Zeile je Quelle.
Basiswert 0–10 · höher = schwerwiegender · Vektor überfahren zum Auflösen⚠ Quellen uneinig · low–medium · 1.9–5.5
schwächen
Die CWE-Schwächeklassen, zu denen dies gehört.
betroffene Produkte (27)
Betroffene Produkte und Versionsbereiche.
- IBM Security Verify Access 10.0.0-10.0.7.1alle Versionencert_bundDEcpe:/a:ibm:security_verify_access:10.0.0_-_10.0.7.1
- n/a buildah≤ Affects v1.21.2, v1.20.0, v1.19.8, v1.18.0, v1.17.1, v1.16.7, Fixed in v1.21.3, v1.19.9, v1.17.2, v1.16.8, v1.22.0 and above.enisa_euvdEU
Advisories (3)
Hersteller- und Ökosystem-Meldungen dazu.
- WID-SEC-W-2022-0571Red Hat Enterprise Linux: Mehrere SchwachstellenDeutsch2021-11-09csaf · cert_bundDE
Ein entfernter, anonymer, authentisierter oder lokaler Angreifer kann mehrere Schwachstellen in Red Hat Enterprise Linux ausnutzen, um einen Cross-Site-Scripting-Angriff durchzuführen, vertrauliche Informationen offenzulegen, einen Denial-of-Service-Zustand herbeizuführen, Sicherheitsmaßnahmen zu umgehen, beliebigen Code auszuführen, Dateien zu manipulieren und einen nicht spezifizierten Angriff durchzuführen.
- GHSA-7638-r9r3-rmjjBuildah processes using chroot isolation may leak environment values to intermediate processes2021-07-19ghsa · osvUS
### Impact 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. ### Patches Users should upgrade packages, or images which contain packages, to include version 1.21.3 or later. ### Workarounds As a workaround, invoking `buildah` in a container under `env -i` to have it started with a reinitialized environment should prevent the leakage. ### For more information If you have any questions or comments about this advisory: * Open an issue in [buildah](https://github.com/containers/buildah/issues) * Email us at [the buildah general mailing list](mailto:buildah@lists.buildah.io), or [the podman security mailing list](mailto:security@lists.podman.io) if it's sensitive.
- GO-2022-0345Environment variable leakage in github.com/containers/buildah2022-07-15vendor · osvUS
The RunUsingChroot function unintentionally propagates environment variables from the current process to the child process.
auch bekannt als (5)
Weitere Namen und Kennungen dieser Entität.
quellen
Welche Quellen diesen Datensatz belegen und wann.
Referenzen (23)
Externe Belege — Patches, Meldungen, Analysen.
- https://access.redhat.comPatchcnnvd
- https://access.redhat.com/security/cve/cve-2021-3602cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=1969264cnnvd
- https://cxsecurity.com/cveshow/CVE-2021-3602/cnnvd
- https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0cnnvd
- https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjjcnnvd
- https://packetstormsecurity.com/files/164893/Red-Hat-Security-Advisory-2021-4222-02.htmlcnnvd
- https://ubuntu.com/security/CVE-2021-3602cnnvd
Angreifer nutzen Schwachstellen wie diese gegen im Internet exponierte Dienste aus. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan