Skip to content
Heist/ feed
Back to feed
MediumFix available

golang-github-containers-buildah — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2021-3602

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
golang-github-containers-buildah
Affected versions
Not specified
Fixed versions
1.22.3+ds1-1
CVEs
CVE-2021-3602
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 00:36 UTC · Revision 1

Source evidence

DEBIAN-CVE-2021-3602

core-osv · Original source

Published 3 Mar 2022, 19:15 UTC

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:DEBIAN-CVE-2021-3602

golang-github-containers-buildah

Fixed versions: 1.22.3+ds1-1

golang-github-containers-buildah

Fixed versions: 1.22.3+ds1-1

golang-github-containers-buildah

Fixed versions: 1.22.3+ds1-1

Complete source record
{
  "id": "dc701d01b83be5a34e3d5ff7840239d7527e7f5d9c30cc332a3b4999702b9f87",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-3602",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-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:DEBIAN-CVE-2021-3602",
    "products": [
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.3+ds1-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.3+ds1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "golang-github-containers-buildah",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.22.3+ds1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2021-3602",
      "aliases": [
        "DEBIAN-CVE-2021-3602"
      ],
      "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": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.3+ds1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/debian/golang-github-containers-buildah?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3602.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.3+ds1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/debian/golang-github-containers-buildah?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3602.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.22.3+ds1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-containers-buildah",
            "purl": "pkg:deb/debian/golang-github-containers-buildah?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-3602.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-23T18:03:29.648889084Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-3602"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2021-3602"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-3602",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 421684,
  "published_at": "2022-03-03T19:15:08.107+00:00"
}