{"id":"CVE-2022-27651","aliases":["CVE-2022-27651","GHSA-c3g4-w6cv-6v7h","GO-2022-0417"],"related":["CGA-92xm-329h-8g38"],"kind":"vulnerability","state":"published","title":"Non-empty default inheritable capabilities for linux container in Buildah","summary":"A flaw was found in buildah where containers were incorrectly started with non-empty default permissions. A bug was found in Moby (Docker Engine) where containers were incorrectly started with non-empty inheritable Linux process capabilities, enabling an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs. This has the potential to impact confidentiality and integrity.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A flaw was found in buildah where containers were incorrectly started with non-empty default permissions. A bug was found in Moby (Docker Engine) where containers were incorrectly started with non-empty inheritable Linux process capabilities, enabling an attacker with access to programs with inheritable file capabilities to elevate those capabilities to the permitted set when execve(2) runs. This has the potential to impact confidentiality and integrity.","source":"cvelist"},{"lang":"en","text":"A bug was found in Buildah where containers were created with non-empty inheritable Linux process capabilities, creating an atypical Linux environment and enabling programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).\n\nThis bug did not affect the container security sandbox as the inheritable set never contained more capabilities than were included in the container's bounding set.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Containers are created with non-empty inheritable Linux process capabilities, permitting programs with inheritable file capabilities to elevate those capabilities to the permitted set during execve(2).\n\nThis bug does not affect the container security sandbox, as the inheritable set never contains more capabilities than are included in the container's bounding set.","format":"markdown","source":"go"},{"lang":"es","text":"Se ha encontrado un fallo en buildah por el que los contenedores eran iniciados incorrectamente con permisos por defecto no vacíos. Se ha encontrado un bug en Moby (Docker Engine) donde los contenedores eran iniciados incorrectamente con capacidades de proceso Linux heredables no vacías, permitiendo a un atacante con acceso a programas con capacidades de archivo heredables elevar esas capacidades al conjunto permitido cuando execve(2) se ejecuta. Esto presenta el potencial de afectar la confidencialidad e integridad","source":"nvd"}],"published":"2022-04-01T13:56:42.000Z","modified":"2026-09-10T03:49:18.981Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-276"],"affected":[{"ranges":[{"version":"Affects buildah v1.24.0 and prior, Fixed in - v1.25.0","status":"affected"}],"product":"buildah","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.0"}],"ecosystem":"Go","package":"github.com/containers/buildah","purl":"pkg:golang/github.com/containers/buildah","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.0"}],"ecosystem":"Go","package":"github.com/containers/buildah","purl":"pkg:golang/github.com/containers/buildah","source":"go"},{"ranges":[{"status":"affected","fixed":"1.25.0"}],"vendor":"buildah_project","product":"buildah","cpe":"cpe:2.3:a:buildah_project:buildah:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"},{"status":"affected","version":"36"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"7.0"},{"status":"affected","version":"8.0"}],"vendor":"redhat","product":"enterprise_linux","cpe":"cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2066840","tags":["issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/containers/buildah/security/advisories/GHSA-c3g4-w6cv-6v7h","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/containers/buildah/commit/e7e55c988c05dd74005184ceb64f097a0cfe645b","tags":["fix","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52/","tags":["vendor-advisory","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-27651","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/containers/buildah/pull/3855","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/containers/buildah/commit/90b3254c7404039c1c786999ac189654228f6e0e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/containers/buildah","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/25YI27MENCEPZTTGRVU6BQD5V53FNI52","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2VWH6X6HOFPO6HTESF42HIJZEPXSWVIO","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7NETC7I6RTMMBRJJQVJOJUPDK4W4PQSJ","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0417","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-27651","url":"https://www.cve.org/CVERecord?id=CVE-2022-27651","licence":"CVE Terms of Use","modified":"2024-08-03T05:32:59.789Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c3g4-w6cv-6v7h","url":"https://github.com/advisories/GHSA-c3g4-w6cv-6v7h","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.981Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0417","url":"https://pkg.go.dev/vuln/GO-2022-0417","licence":"CC-BY-4.0","modified":"2026-02-04T02:57:33.756Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-27651","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-27651","licence":"Public domain","modified":"2026-06-17T04:37:25.563Z"}],"updatedAt":"2026-11-25T22:58:10.410Z","epss":{"score":0.01255,"percentile":0.70331,"date":"2026-12-01T12:00:22.000Z"}}