{"answers":{"affected":"3 open source packages ship an affected version, including github.com/opencontainers/runc. It affects 2 products.","exploited":"There is no known exploitation of CVE-2022-29162 in the wild and no public exploit code.","fix":"Upgrade github.com/opencontainers/runc to 1.1.2 or later.","what":"CVE-2022-29162 is a medium-severity vulnerability in Fedoraproject Fedora, published on 17 May 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-29162 and fix it if it is affected.\n\nWhat it is: CVE-2022-29162 is a medium-severity vulnerability in Fedoraproject Fedora, published on 17 May 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-29162 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.2\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.2\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-29162/ (Markdown: https://insights.sbomify.com/CVE-2022-29162/index.md)","id":"CVE-2022-29162","markdown":"https://insights.sbomify.com/CVE-2022-29162/index.md","name":"CVE-2022-29162","record":{"aliases":["ALSA-2022:8090","AZL-9817","CLEANSTART-2026-CQ48087","DEBIAN-CVE-2022-29162","GHSA-f3fp-gc8g-vw66","GO-2022-0452","MGASA-2022-0192","OESA-2022-1704","RHSA-2022:8090","RLSA-2022:8090","UBUNTU-CVE-2022-29162"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"container runtime","requires_auth":"none","summary":"Attackers can exploit incorrect default permissions in runc exec to elevate capabilities, requiring specific command-line flags to trigger.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"runc","vendor":"linuxfoundation"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"description":"runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. A bug was found in runc prior to version 1.1.2 where `runc exec --cap` created processes 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). This 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. This bug has been fixed in runc 1.1.2. This fix changes `runc exec --cap` behavior such that the additional capabilities granted to the process being executed (as specified via `--cap` arguments) do not include inheritable capabilities. In addition, `runc spec` is changed to not set any inheritable capabilities in the created example OCI spec (`config.json`) file.","ecosystems":["AlmaLinux:9","Go","Red Hat:enterprise_linux:9::appstream","Rocky Linux:9"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect Default Permissions in runc","id":"CVE-2022-29162","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"privilege_escalation","year":"2022"},"n_packages":8,"n_references":7,"next":{"headline":"Bypass of password requirements when sharing a folder via the Circles app in Nextcloud Server","id":"CVE-2022-29163"},"packages":[{"ecosystem":"Go","fixed":["1.1.2"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-f3fp-gc8g-vw66"},{"ecosystem":"Go","fixed":["1.1.2"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-f3fp-gc8g-vw66"},{"ecosystem":"Go","fixed":["1.1.2"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GO-2022-0452"},{"ecosystem":"AlmaLinux:9","fixed":["4:1.1.4-1.el9"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/almalinux/runc","source":"ALSA-2022:8090"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["4:1.1.4-1.el9"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/redhat/runc","source":"RHSA-2022:8090"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["4:1.1.4-1.el9"],"introduced":["0"],"last_affected":[],"package":"runc-debuginfo","purl":"pkg:rpm/redhat/runc-debuginfo","source":"RHSA-2022:8090"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["4:1.1.4-1.el9"],"introduced":["0"],"last_affected":[],"package":"runc-debugsource","purl":"pkg:rpm/redhat/runc-debugsource","source":"RHSA-2022:8090"},{"ecosystem":"Rocky Linux:9","fixed":["4:1.1.4-1.el9_1"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/rocky-linux/runc?distro=rocky-linux-9\u0026epoch=4","source":"RLSA-2022:8090"}],"prev":{"headline":"Crypto script service uses hashing algorithm SHA1 with RSA for certificate signature in xwiki-platform","id":"CVE-2022-29161"},"products":["runc"],"published":"2022-05-17","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"BSD","name":"Rocky Linux","prefix":"RLSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["opencontainers"]},"summary":"Attackers can exploit incorrect default permissions in runc exec to elevate capabilities, requiring specific command-line flags to trigger.","url":"https://insights.sbomify.com/CVE-2022-29162/"}