CVE-2021-3602

MEDIUM
Published Mar 3, 20224y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Mar 3, 2022 4y ago
Last Modified Jun 17, 2026 2w ago

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).

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 2

CWE-200 Exposure of Sensitive Information to an Unauthorized Actor Information Exposure
CWE-212

Affected Products 7

VendorProductVersionRange
buildah_projectbuildah* <1.16.8
buildah_projectbuildah*≥1.17.0  –  <1.17.2
buildah_projectbuildah*≥1.19.0  –  <1.19.9
buildah_projectbuildah*≥1.21.0  –  <1.21.3
redhatenterprise_linux8.0any
redhatenterprise_linux_for_ibm_z_systems8.0any
redhatenterprise_linux_for_power_little_endian8.0any

References 4

  • bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1969264
    Issue TrackingPatchThird Party Advisory
  • github.com https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
    PatchThird Party Advisory
  • github.com https://github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjj
    Third Party Advisory
  • ubuntu.com https://ubuntu.com/security/CVE-2021-3602
    PatchThird Party Advisory

Remediation

  • bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1969264
    Issue TrackingPatchThird Party Advisory
  • github.com https://github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0
    PatchThird Party Advisory
  • ubuntu.com https://ubuntu.com/security/CVE-2021-3602
    PatchThird Party Advisory