{"id":"CVE-2022-4318","aliases":["GO-2022-1206"],"url":"https://o3.security/vulnerability/CVE-2022-4318","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","published":"2022-12-29T01:49:47Z","modified":"2024-08-21T16:28:38.105255Z","cvss":{"score":6.1,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.26.0"}],"fix":{"url":"https://github.com/cri-o/cri-o/pull/6450","label":"cri-o/cri-o#6450"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2024-08-21T16:28:38.105255Z"}}