UBUNTU-CVE-2021-3602 (CVE-2021-3602)
Vulnerability from osv_ubuntu – Published: 2022-03-03 19:15 – Updated: 2026-07-02 15:50 – Source websiteAn 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).
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "buildah",
"binary_version": "1.23.1+ds1-2"
},
{
"binary_name": "golang-github-containers-buildah-dev",
"binary_version": "1.23.1+ds1-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "golang-github-containers-buildah",
"purl": "pkg:deb/ubuntu/golang-github-containers-buildah@1.23.1+ds1-2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.21.3+ds1-1ubuntu1",
"1.23.1+ds1-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "buildah",
"binary_version": "1.33.7+ds1-1ubuntu0.24.04.3+esm3"
},
{
"binary_name": "golang-github-containers-buildah-dev",
"binary_version": "1.33.7+ds1-1ubuntu0.24.04.3+esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:24.04:LTS",
"name": "golang-github-containers-buildah",
"purl": "pkg:deb/ubuntu/golang-github-containers-buildah@1.33.7+ds1-1ubuntu0.24.04.3+esm3?arch=source\u0026distro=esm-apps/noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.28.2+ds1-3build1",
"1.32.2+ds1-1",
"1.33.1+ds1-2",
"1.33.3+ds1-2",
"1.33.5+ds1-4",
"1.33.5+ds1-4build1",
"1.33.5+ds1-4build2",
"1.33.7+ds1-1",
"1.33.7+ds1-1ubuntu0.24.04.1",
"1.33.7+ds1-1ubuntu0.24.04.2",
"1.33.7+ds1-1ubuntu0.24.04.2+esm1",
"1.33.7+ds1-1ubuntu0.24.04.2+esm2",
"1.33.7+ds1-1ubuntu0.24.04.3",
"1.33.7+ds1-1ubuntu0.24.04.3+esm2",
"1.33.7+ds1-1ubuntu0.24.04.3+esm3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "buildah",
"binary_version": "1.39.3+ds1-1syncable1"
},
{
"binary_name": "golang-github-containers-buildah-dev",
"binary_version": "1.39.3+ds1-1syncable1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "golang-github-containers-buildah",
"purl": "pkg:deb/ubuntu/golang-github-containers-buildah@1.39.3+ds1-1syncable1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.39.3+ds1-1syncable1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "buildah",
"binary_version": "1.42.1+ds1-2ubuntu0.26.04.1~esm1"
},
{
"binary_name": "golang-github-containers-buildah-dev",
"binary_version": "1.42.1+ds1-2ubuntu0.26.04.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:26.04:LTS",
"name": "golang-github-containers-buildah",
"purl": "pkg:deb/ubuntu/golang-github-containers-buildah@1.42.1+ds1-2ubuntu0.26.04.1~esm1?arch=source\u0026distro=esm-apps/resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.39.3+ds1-1syncable1",
"1.42.1+ds1-2",
"1.42.1+ds1-2build1",
"1.42.1+ds1-2ubuntu0.26.04.1~esm1"
]
}
],
"aliases": [],
"details": "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).",
"id": "UBUNTU-CVE-2021-3602",
"modified": "2026-07-02T15:50:15Z",
"published": "2022-03-03T19:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2021-3602"
},
{
"type": "REPORT",
"url": "https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj"
},
{
"type": "REPORT",
"url": "https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0"
},
{
"type": "REPORT",
"url": "https://github.com/containers/buildah/commit/23c478b815fb93c094070baa336bcb6a27c01683"
},
{
"type": "REPORT",
"url": "https://github.com/containers/buildah/commit/f4f2a7fc78fa4f12e2f6e6c4ab450aae0d182f3e"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2021-3602"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2021-3602"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.