Security advisory
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).
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3602
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:49 UTC · Revision 1
Source evidence
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).
osv:CVE-2021-3602
Complete source record
{
"id": "dfc6233d682591662dfff235c234ff63433fc8860cc579b45e72daefe0138d71",
"url": "https://osv.dev/vulnerability/CVE-2021-3602",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3602",
"summary": "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).",
"evidence": "osv:CVE-2021-3602",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3602",
"aliases": [
"CVE-2021-3602",
"GHSA-7638-r9r3-rmjj",
"GO-2022-0345"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/podman-container-tools/buildah",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a4caa7bd7436cb4ff607abc4cb27eb076c9442f5"
},
{
"introduced": "8891d05dbaffc0b6013a48a68177b4ccec281f8c"
},
{
"fixed": "7219dd09b6f8077f647ec8add765224dc247b2f6"
},
{
"introduced": "474febf0dcb3c76c23a88f3b83834c81f20a7e5c"
},
{
"fixed": "c1d6200be31286ea3cd4752ed1464b0f85ea388a"
},
{
"introduced": "5e3515c5b09fe706d32bd4443800a996138516b2"
},
{
"fixed": "7f9540d2ab9037b7e175a4d1b36e85fc6541aeb5"
},
{
"fixed": "a468ce0ffd347035d53ee0e26c205ef604097fb0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.16.8"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.17.0"
},
{
"fixed": "1.17.2"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.19.0"
},
{
"fixed": "1.19.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.21.0"
},
{
"fixed": "1.21.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "a468ce0ffd347035d53ee0e26c205ef604097fb0"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.21.2",
"v1.17.1",
"v1.21.0",
"v1.19.6",
"v1.19.3",
"v1.19.0",
"v1.16.7",
"v1.16.6",
"v1.17.0",
"v1.16.5",
"v1.16.4",
"v1.16.3",
"v1.16.2",
"v1.16.1",
"v1.16.0",
"v1.5",
"v1.13.2",
"v1.11.5",
"v1.11.4",
"v1.11.3",
"v1.8.3",
"v1.8.2",
"v1.8.1",
"v1.8.0",
"v1.7.3",
"v1.7.2",
"v1.7.1",
"v1.7",
"v1.6",
"1.4",
"v1.4",
"v1.3",
"v0.15",
"v0.12",
"v0.10",
"v0.8",
"v0.7",
"v0.6",
"v0.5",
"v0.4",
"v0.3",
"v0.2",
"v0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3602.json"
}
}
],
"modified": "2026-10-20T10:54:46.917867762Z",
"provider": "osv",
"references": [
"https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj",
"https://bugzilla.redhat.com/show_bug.cgi?id=1969264",
"https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0",
"https://ubuntu.com/security/CVE-2021-3602"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux_for_ibm_z_systems",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:enterprise_linux_for_power_little_endian",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2021-3602",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 386131,
"published_at": "2022-03-03T19:15:08.107+00:00"
}