{"id":"GHSA-cm9x-c3rh-7rc4","summary":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation","details":"### Impact\nIt is possible to craft an environment variable with newlines to add entries to a container's /etc/passwd. It is possible to circumvent admission validation of username/UID by adding such an entry.\n\nNote: because the pod author is in control of the container's /etc/passwd, this is not considered a new risk factor. However, this advisory is being opened for transparency and as a way of tracking fixes.\n\n### Patches\n1.26.0 will have the fix. More patches will be posted as they're available.\n\n### Workarounds\nAdditional security controls like SELinux should prevent any damage a container is able to do with root on the host. Using SELinux is recommended because this class of attack is already possible by manually editing the container's /etc/passwd \n\n### References\n","aliases":["CVE-2022-4318","GO-2022-1206"],"modified":"2024-08-21T16:28:38.105255Z","published":"2022-12-29T01:49:47Z","database_specific":{"cwe_ids":["CWE-538","CWE-913"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-12-29T01:49:47Z","nvd_published_at":"2023-09-25T20:15:10Z"},"references":[{"type":"WEB","url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/pull/6450"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1033"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2023:1503"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-4318"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2152703"},{"type":"PACKAGE","url":"https://github.com/cri-o/cri-o"}],"affected":[{"package":{"name":"github.com/cri-o/cri-o","ecosystem":"Go","purl":"pkg:golang/github.com/cri-o/cri-o"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/12/GHSA-cm9x-c3rh-7rc4/GHSA-cm9x-c3rh-7rc4.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N"}]}