{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-3602","id":"CVE-2021-3602","title":"Buildah processes using chroot isolation may leak environment values to intermediate processes","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 use","descriptionLong":"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).","published":"2022-03-03T18:26:21.000Z","updated":"2026-10-20T10:54:46.917867762Z","reserved":"2021-06-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":1.9,"vector":"AV:L/AC:M/Au:N/C:P/I:N/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["buildah"],"affectedProducts":[{"vendor":"n/a","product":"buildah","defaultStatus":null,"versions":[{"status":"affected","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."}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/containers/buildah","purl":"pkg:golang/github.com/containers/buildah","ranges":["<1.16.8",">=1.17.0 <1.17.2",">=1.18.0 <1.19.9",">=1.20.0 <1.21.3","<1.22.0"],"fixed":["1.16.8","1.17.2","1.19.9","1.21.3","1.22.0"],"advisory":"GHSA-7638-r9r3-rmjj"}],"cwes":["CWE-200","CWE-212"],"aliases":["GHSA-7638-r9r3-rmjj","GO-2022-0345"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1969264","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://ubuntu.com/security/CVE-2021-3602","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3602","tags":["advisory"]},{"url":"https://github.com/containers/buildah","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0345","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00319,"epssPercentile":0.25338,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-3602","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3602","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-3602","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7638-r9r3-rmjj","ok":true,"note":"GHSA-7638-r9r3-rmjj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-3602","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}