{"id":"UBUNTU-CVE-2022-4122","details":"A vulnerability was found in buildah. Incorrect following of symlinks while reading .containerignore and .dockerignore results in information disclosure.","modified":"2026-07-02T18:00:42.482702052Z","published":"2022-12-08T16:15:00Z","upstream":["CVE-2022-4122"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-4122"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2022-4122"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2144983"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2022-4122"},{"type":"REPORT","url":"https://github.com/advisories/GHSA-4crw-w8pw-2hmf"},{"type":"REPORT","url":"https://github.com/containers/podman/pull/16315"},{"type":"REPORT","url":"https://github.com/containers/podman/commit/c8eeab21cf0a4f670be0cd399dd06fd5d4e06dfe"},{"type":"REPORT","url":"https://github.com/containers/podman/commit/70e8f6243a661f2a1bb196190b852df0a6e5d91a"}],"affected":[{"package":{"name":"golang-github-containers-buildah","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21.3+ds1-1ubuntu1","1.23.1+ds1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.23.1+ds1-2","binary_name":"buildah"},{"binary_version":"1.23.1+ds1-2","binary_name":"golang-github-containers-buildah-dev"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"}},{"package":{"name":"golang-github-containers-buildah","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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.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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"}},{"package":{"name":"golang-github-containers-buildah","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.39.3+ds1-1syncable1"],"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"}},{"package":{"name":"golang-github-containers-buildah","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/golang-github-containers-buildah?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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"],"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-4122.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}