CVE-2021-3602: buildah_project buildah
Vulnerability summary
CVE-2021-3602 is a medium (CVSS 5.5) vulnerability in buildah_project buildah. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 25.8% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 6 · Related 6Timeline
- 03-03-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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 metrics
9 scores · 8 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated5.6MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- OSV · AlpineEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.33% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-212Improper Removal of Sensitive Information Before Storage or TransferThe product stores, transfers, or shares a resource that contains sensitive information, but it does not properly remove that information before the product makes the resource available to unauthorized actors.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat62 products
- enterprise_linux8.0
- enterprise_linux_for_ibm_z_systems8.0
- enterprise_linux_for_power_little_endian8.0
- buildah< 0:1.11.6-9.module+el8.5.0+12239+ec01067b | < 0:1.19.9-1.module+el8.5.0+12236+c988d830
- buildah-debuginfo< 0:1.11.6-9.module+el8.5.0+12239+ec01067b | < 0:1.19.9-1.module+el8.5.0+12236+c988d830
Alpine2 products
- buildah≥ 1.17.0, < 1.21.3-r0
- podman< 3.2.3-r0
Buildah_project1 product
- buildah< 1.16.8 | ≥ 1.17.0, < 1.17.2 | ≥ 1.19.0, < 1.19.9 | ≥ 1.21.0, < 1.21.3
Chainguard1 product
- buildahAll versions (No fix recorded)
Debian1 product
- golang-github-containers-buildah< 1.22.3+ds1-1
Github.com/containers1 product
- buildah< 1.16.8 | ≥ 1.17.0, < 1.17.2 | ≥ 1.18.0, < 1.19.9 | ≥ 1.20.0, < 1.21.3 | < 1.22.0
Ubuntu1 product
- golang-github-containers-buildahAll versions (No fix recorded)
Wolfi1 product
- buildahAll versions (No fix recorded)
8 vendors · 70 products
References
20 links- bugzilla.redhat.com/show_bug.cgi?id=1969264X Refsource MISCREPORTFIXWEBIssue TrackingPatchThird Party Advisory
- github.com/containers/buildah/security/advisories/GHSA-7638-r9r3-rmjjX Refsource MISCARTICLEREPORTAdvisoryWEBThird Party Advisory
- github.com/containers/buildah/commit/a468ce0ffd347035d53ee0e26c205ef604097fb0X Refsource MISCREPORTFIXWEBPatchThird Party Advisory