{"id":"GHSA-7638-r9r3-rmjj","revision":null,"records":[{"revision":"9dcffd039c594ed99313065771e39152","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2021-3602","aliases":[],"title":"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 processe…","description":"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).","state":0,"publishedAt":"2022-03-03T18:26:21+00:00","modifiedAt":"2024-08-03T17:01:08.065+00:00","affected":[{"ecosystem":"Vendor product","name":"buildah","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"buildah\",\n                    \"vendor\": \"n/a\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"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.\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1969264","https://ubuntu.com/security/CVE-2021-3602","https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj","https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-3602","license":"CVE Program Terms of Use","key":"cve-program:CVE-2021-3602","identifiers":["CVE-2021-3602"]},"retained":false,"historicalAffected":[]},{"revision":"8c2d0eada7584aa68adea843495fe863","observedAt":"2026-11-18T00:39:51.495+00:00","statement":{"source":"euvd","id":"EUVD-2021-1446","aliases":["CVE-2021-3602","GHSA-7638-r9r3-rmjj"],"title":"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 processe…","description":"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).","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1969264","https://ubuntu.com/security/CVE-2021-3602","https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj","https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-1446","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Mar 3, 2022, 6:26:21 PM","dateUpdated":"Aug 3, 2024, 5:01:08 PM"},"relatedAdvisories":[{"id":"openSUSE-SU-2022:23018-1","title":"Security update for conmon, libcontainers-common, libseccomp, podman","vulnerabilityIds":["CVE-2020-14370","CVE-2020-15157","CVE-2021-20199","CVE-2021-20291","CVE-2021-3602","CVE-2021-4024","CVE-2021-41190"]},{"id":"openSUSE-SU-2024:11757-1","title":"libcontainers-common-20210626-7.1 on GA media","vulnerabilityIds":["CVE-2020-14370","CVE-2020-15157","CVE-2021-20199","CVE-2021-20291","CVE-2021-3602"]},{"id":"SUSE-SU-2022:3312-1","title":"Security update for libcontainers-common","vulnerabilityIds":["CVE-2020-14370","CVE-2020-15157","CVE-2021-20199","CVE-2021-20291","CVE-2021-3602"]},{"id":"msrc_CVE-2021-3602","title":"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).","vulnerabilityIds":["CVE-2021-3602"]},{"id":"RHSA-2021:4222","title":"Red Hat Security Advisory: container-tools:3.0 security and bug fix update","vulnerabilityIds":["CVE-2021-3602"]},{"id":"RHSA-2021:4154","title":"Red Hat Security Advisory: container-tools:rhel8 security, bug fix, and enhancement update","vulnerabilityIds":["CVE-2021-3602","CVE-2021-20291"]},{"id":"SUSE-SU-2022:23018-1","title":"Security update for conmon, libcontainers-common, libseccomp, podman","vulnerabilityIds":["CVE-2020-14370","CVE-2020-15157","CVE-2021-20199","CVE-2021-20291","CVE-2021-3602","CVE-2021-4024","CVE-2021-41190"]},{"id":"WID-SEC-W-2022-0571","title":"Red Hat Enterprise Linux: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2019-17594","CVE-2019-17595","CVE-2019-18218","CVE-2019-19004","CVE-2019-19005","CVE-2020-12762","CVE-2020-17541","CVE-2020-18442","CVE-2020-24370","CVE-2020-8037","CVE-2021-20095","CVE-2021-28957","CVE-2021-29922","CVE-2021-3200","CVE-2021-3445","CVE-2021-3481","CVE-2021-3565","CVE-2021-3571","CVE-2021-3572","CVE-2021-3602","CVE-2021-36084","CVE-2021-36085","CVE-2021-36086","CVE-2021-36087","CVE-2021-42771"]},{"id":"RHSA-2021:4221","title":"Red Hat Security Advisory: container-tools:2.0 security update","vulnerabilityIds":["CVE-2021-3602"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2021-1446","identifiers":["EUVD-2021-1446","CVE-2021-3602","GHSA-7638-r9r3-rmjj"]},"retained":false,"historicalAffected":[]},{"revision":"1cecdac4f0be4fa4b5a126d632cf7394","observedAt":"2026-10-24T18:17:33.371+00:00","statement":{"source":"nvd","id":"CVE-2021-3602","aliases":[],"title":"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 processe…","description":"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).","state":0,"publishedAt":"2022-03-03T19:15:08.107+00:00","modifiedAt":"2026-06-17T04:05:25.127+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"severity":"MEDIUM"},{"system":"CVSS 2.0 · nvd@nist.gov · Primary","vector":"AV:L/AC:M/Au:N/C:P/I:N/A:N","score":1.9,"severity":"LOW"}],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1969264","https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0","https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj","https://ubuntu.com/security/CVE-2021-3602"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2021-3602","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-200","CWE-212"],"productCriteria":["cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*"],"sourceDates":{"published":"2022-03-03T19:15:08.107","lastModified":"2026-06-17T04:05:25.127"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2021-3602","identifiers":["CVE-2021-3602"]},"retained":false,"historicalAffected":[]},{"revision":"e32dcf43e1474a4eac959a5cb0fb831e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-7638-r9r3-rmjj","aliases":["CVE-2021-3602","GO-2022-0345"],"title":"Buildah processes using chroot isolation may leak environment values to intermediate processes","description":"### Impact\nWhen 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.\n\n### Patches\nUsers should upgrade packages, or images which contain packages, to include version 1.21.3 or later.\n\n### Workarounds\nAs a workaround, invoking `buildah` in a container under `env -i` to have it started with a reinitialized environment should prevent the leakage.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [buildah](https://github.com/containers/buildah/issues)\n* 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.","state":0,"publishedAt":"2021-07-19T15:19:09+00:00","modifiedAt":"2026-09-10T03:49:06.3802435+00:00","affected":[{"ecosystem":"Go","name":"github.com/containers/buildah","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.16.8"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/containers/buildah","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.17.0"},{"kind":"fixed","version":"1.17.2"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/containers/buildah","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.18.0"},{"kind":"fixed","version":"1.19.9"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/containers/buildah","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.20.0"},{"kind":"fixed","version":"1.21.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj","https://nvd.nist.gov/vuln/detail/CVE-2021-3602","https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0","https://bugzilla.redhat.com/show_bug.cgi?id=1969264","https://github.com/containers/buildah","https://pkg.go.dev/vuln/GO-2022-0345","https://ubuntu.com/security/CVE-2021-3602"],"sourceUrl":"https://github.com/advisories/GHSA-7638-r9r3-rmjj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7638-r9r3-rmjj","identifiers":["GHSA-7638-r9r3-rmjj","CVE-2021-3602","GO-2022-0345"]},"retained":false,"historicalAffected":[]},{"revision":"224107f8cd4f4d49aa00f3342e14db23","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0345","aliases":["CVE-2021-3602","GHSA-7638-r9r3-rmjj"],"title":"Environment variable leakage in github.com/containers/buildah","description":"The RunUsingChroot function unintentionally propagates environment variables from the current process to the child process.","state":0,"publishedAt":"2022-07-15T23:30:21+00:00","modifiedAt":"2026-02-04T03:52:10.147303+00:00","affected":[{"ecosystem":"Go","name":"github.com/containers/buildah","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.22.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0345","license":"OSV · upstream source license applies","key":"osv:GO-2022-0345","identifiers":["GO-2022-0345","CVE-2021-3602","GHSA-7638-r9r3-rmjj"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5819004+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.581904+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-a3c5d1f50b99987b637138fdc7cd9e1e0d772b1c81dbbff4bcc8be865c192a98","complete":true,"records":428232,"lastAttemptAt":"2026-11-19T05:22:47.9486287+00:00","lastSuccessAt":"2026-11-19T05:22:47.9265788+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:47.9486287+00:00","snapshotPublishedAt":"2026-11-19T04:33:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-7c1103063ba0426d8e585240e558964c","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T05:32:28.4240909+00:00","lastSuccessAt":"2026-11-19T05:32:27.403+00:00","error":"218 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T05:32:27.403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13568,"expectedIdentifiers":13908,"failedIdentifiers":218},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-19T05:22:48.4383343+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T05:22:48.4383343+00:00","lastSuccessAt":"2026-11-19T05:22:48.5827402+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.5827403+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T05:22:49.1394496+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T05:22:48.2819697+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.2819697+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T05:22:48.0028407+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.0028407+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T05:22:48.391557+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.391557+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T05:22:48.1723185+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T05:22:48.1723185+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}