{"id":"CVE-2022-4318","aliases":["ALPINE-CVE-2022-4318","AZL-39873","GHSA-cm9x-c3rh-7rc4","GO-2022-1206","RHSA-2023:1033","RHSA-2023:1503","WID-SEC-W-2023-0600"],"summary":"Cri-o: /etc/passwd tampering privesc","published_at":"2022-12-12T00:00:00Z","modified_at":"2026-11-18T05:18:11.361975Z","products":[{"slug":"openshift","name":"OpenShift","category":"kubernetes-container"},{"slug":"cri-o","name":"CRI-O","category":"kubernetes-container"},{"slug":"rhel","name":"Red Hat Enterprise Linux","category":"red-hat"}],"rating":{"severity":"high","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"BSI","rating":"mittel"},{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.002899999963119626,"percentile":0.21995000541210175,"date":"2026-11-19T00:00:00Z"},"priority":7.3,"details":"A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.","affected_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Container Platform 4.11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"cvelistv5","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Container Platform 4.12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"cvelistv5","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}],"fixed":["1.26.0"],"provider":"osv","source":"GHSA-cm9x-c3rh-7rc4","relation":"self"},{"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}],"fixed":["1.26.0"],"provider":"osv","source":"GO-2022-1206","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_arm64","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_linuxone","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_power","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_ibm_z_systems","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"}],"affected_other":[{"ecosystem":"Alpine:v3.21","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.22","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.23","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.24","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Azure Linux:2","package":"cri-o","purl":"pkg:rpm/azure-linux/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.3-1"}]}],"fixed":["1.22.3-1"],"provider":"osv","source":"AZL-39873","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:extra_packages_for_enterprise_linux","versions":["8.0"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["36","37"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"}],"product_status":[{"vendor":"BSI","product":"Red Hat Enterprise Linux","cpe":"cpe:/o:redhat:enterprise_linux:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift <4.12.6","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift Container Platform","cpe":"cpe:/a:redhat:openshift:container_platform","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:container_platform_4.11","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["fence-agents","fence-agents-aliyun","fence-agents-all","fence-agents-amt-ws","fence-agents-apc","fence-agents-apc-snmp","fence-agents-aws","fence-agents-azure-arm","fence-agents-bladecenter","fence-agents-brocade","fence-agents-cisco-mds","fence-agents-cisco-ucs","fence-agents-common","fence-agents-compute","fence-agents-drac5","fence-agents-eaton-snmp","fence-agents-emerson","fence-agents-eps","fence-agents-gce","fence-agents-heuristics-ping","fence-agents-hpblade","fence-agents-ibm-powervs","fence-agents-ibm-vpc","fence-agents-ibmblade","fence-agents-ifmib"],"package_count":57,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:4.11::el8","status":"fixed","packages":["cri-o"],"package_count":1,"fixed":["cri-o-1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"advisories":["RHSA-2023:1503"],"provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:4.11::el8","status":"not_affected","packages":["atomic-openshift-service-idler","openshift","openshift-ansible","openshift-clients","openshift-kuryr"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","cpe":"cpe:/a:redhat:openshift:4.12::el8","status":"fixed","packages":["cri-o"],"package_count":1,"fixed":["cri-o-1.25.2-10.rhaos4.12.git0a083f9.el8","cri-o-1.25.2-9.rhaos4.12.git0a083f9.el9"],"advisories":["RHSA-2023:1033"],"provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","cpe":"cpe:/a:redhat:openshift:4.12::el8","status":"not_affected","packages":["kernel","kernel-rt","openshift"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-4318","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318","license":"CC-BY-4.0","published_at":"2023-09-25T19:23:02.119Z","modified_at":"2024-08-03T01:34:50.124Z","summary":"Cri-o: /etc/passwd tampering privesc","details":"A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-4318"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Container Platform 4.11","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"cvelistv5","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Container Platform 4.12","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"cvelistv5","source":"CVE-2022-4318","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1033"},{"type":"ADVISORY","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"}]},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0600","relation":"self","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0600","license":"TLP:CLEAR, mirroring permitted","published_at":"2023-03-08T23:00:00Z","modified_at":"2026-10-01T22:00:00Z","summary":"Red Hat OpenShift: Schwachstelle ermöglicht Manipulation von Dateien","details":"Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Red Hat OpenShift ausnutzen, um Dateien zu manipulieren.\n\nRed Hat OpenShift ist eine \"Platform as a Service\" (PaaS) Lösung zur Bereitstellung von Applikationen in der Cloud.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2023-0600"}],"affected":[],"product_status":[{"vendor":"BSI","product":"Red Hat Enterprise Linux","cpe":"cpe:/o:redhat:enterprise_linux:-","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift <4.12.6","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift Container Platform","cpe":"cpe:/a:redhat:openshift:container_platform","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"},{"vendor":"BSI","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:container_platform_4.11","status":"affected","packages":[],"package_count":0,"fixed":[],"advisories":[],"provider":"csaf-bsi","source":"WID-SEC-W-2023-0600"}],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0600.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0600"},{"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/errata/RHSA-2026:57361"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60449"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60444"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60452"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:62548"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:62550"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:65906"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:65838"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:66385"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:67836"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:67856"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:70585"}]},{"provider":"nvd","source_id":"CVE-2022-4318","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318","severity":[],"affected":[{"ecosystem":"NVD","package":"fedoraproject:extra_packages_for_enterprise_linux","versions":["8.0"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"fedoraproject:fedora","versions":["36","37"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_arm64","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_linuxone","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_for_power","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"NVD","package":"redhat:openshift_container_platform_ibm_z_systems","versions":["4.12","4.11"],"provider":"nvd","source":"CVE-2022-4318","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"ALPINE-CVE-2022-4318","relation":"self","url":"https://osv.dev/vulnerability/ALPINE-CVE-2022-4318","published_at":"2023-09-25T20:15:10.59Z","modified_at":"2026-11-18T05:18:11.361975Z","details":"A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"ALPINE-CVE-2022-4318"}],"affected":[{"ecosystem":"Alpine:v3.21","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.22","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.23","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"},{"ecosystem":"Alpine:v3.24","package":"cri-o","purl":"pkg:apk/alpine/cri-o?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}],"fixed":["1.26.2-r0"],"provider":"osv","source":"ALPINE-CVE-2022-4318","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-4318"}]},{"provider":"osv","source_id":"AZL-39873","relation":"self","url":"https://osv.dev/vulnerability/AZL-39873","license":"MIT","published_at":"2023-09-25T20:15:10Z","modified_at":"2026-04-21T04:28:50.883373Z","summary":"CVE-2022-4318 affecting package cri-o for versions less than 1.22.3-1","details":"A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"AZL-39873"}],"affected":[{"ecosystem":"Azure Linux:2","package":"cri-o","purl":"pkg:rpm/azure-linux/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.3-1"}]}],"fixed":["1.22.3-1"],"provider":"osv","source":"AZL-39873","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"}]},{"provider":"osv","source_id":"GHSA-cm9x-c3rh-7rc4","relation":"self","url":"https://osv.dev/vulnerability/GHSA-cm9x-c3rh-7rc4","license":"CC-BY-4.0","published_at":"2022-12-29T01:49:47Z","modified_at":"2024-08-21T16:28:38.105255Z","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","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N","source":"GHSA-cm9x-c3rh-7rc4"}],"affected":[{"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}],"fixed":["1.26.0"],"provider":"osv","source":"GHSA-cm9x-c3rh-7rc4","relation":"self"}],"product_status":[],"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"}]},{"provider":"osv","source_id":"GO-2022-1206","relation":"self","url":"https://osv.dev/vulnerability/GO-2022-1206","license":"CC-BY-4.0","published_at":"2024-08-21T16:03:59Z","modified_at":"2026-03-03T04:52:58.062315Z","summary":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o","details":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}],"fixed":["1.26.0"],"provider":"osv","source":"GO-2022-1206","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","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":"FIX","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"}]},{"provider":"osv","source_id":"RHSA-2023:1033","relation":"self","url":"https://osv.dev/vulnerability/RHSA-2023:1033","license":"CC-BY-4.0","published_at":"2024-09-16T10:50:26Z","modified_at":"2026-11-13T17:54:17Z","summary":"Red Hat Security Advisory: OpenShift Container Platform 4.12.6 packages and security update","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"RHSA-2023:1033"}],"affected":[{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"osv","source":"RHSA-2023:1033","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1033"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/#moderate"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2152703"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1033.json"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2022-4318"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"}]},{"provider":"osv","source_id":"RHSA-2023:1503","relation":"self","url":"https://osv.dev/vulnerability/RHSA-2023:1503","license":"CC-BY-4.0","published_at":"2024-09-16T10:50:35Z","modified_at":"2026-11-13T17:54:33Z","summary":"Red Hat Security Advisory: OpenShift Container Platform 4.11.34 packages and security update","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"RHSA-2023:1503"}],"affected":[{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o","purl":"pkg:rpm/redhat/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"osv","source":"RHSA-2023:1503","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1503"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/#moderate"},{"type":"ARTICLE","url":"https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-11-release-notes.html"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2152703"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1503.json"},{"type":"REPORT","url":"https://access.redhat.com/security/cve/CVE-2022-4318"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"}]},{"provider":"redhat-vex","source_id":"CVE-2022-4318","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-4318","license":"CC-BY-4.0","published_at":"2022-12-12T00:00:00Z","modified_at":"2023-11-15T22:07:49Z","summary":"cri-o: /etc/passwd tampering privesc","details":"A vulnerability was found in cri-o. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-4318"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-4318"}],"affected":[{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}],"fixed":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}],"fixed":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}],"fixed":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"provider":"redhat-vex","source":"CVE-2022-4318","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","cpe":"cpe:/a:redhat:enterprise_linux:9","status":"not_affected","packages":["fence-agents","fence-agents-aliyun","fence-agents-all","fence-agents-amt-ws","fence-agents-apc","fence-agents-apc-snmp","fence-agents-aws","fence-agents-azure-arm","fence-agents-bladecenter","fence-agents-brocade","fence-agents-cisco-mds","fence-agents-cisco-ucs","fence-agents-common","fence-agents-compute","fence-agents-drac5","fence-agents-eaton-snmp","fence-agents-emerson","fence-agents-eps","fence-agents-gce","fence-agents-heuristics-ping","fence-agents-hpblade","fence-agents-ibm-powervs","fence-agents-ibm-vpc","fence-agents-ibmblade","fence-agents-ifmib"],"package_count":57,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:4.11::el8","status":"fixed","packages":["cri-o"],"package_count":1,"fixed":["cri-o-1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"advisories":["RHSA-2023:1503"],"provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.11","cpe":"cpe:/a:redhat:openshift:4.11::el8","status":"not_affected","packages":["atomic-openshift-service-idler","openshift","openshift-ansible","openshift-clients","openshift-kuryr"],"package_count":5,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","cpe":"cpe:/a:redhat:openshift:4.12::el8","status":"fixed","packages":["cri-o"],"package_count":1,"fixed":["cri-o-1.25.2-10.rhaos4.12.git0a083f9.el8","cri-o-1.25.2-9.rhaos4.12.git0a083f9.el9"],"advisories":["RHSA-2023:1033"],"provider":"redhat-vex","source":"CVE-2022-4318"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","cpe":"cpe:/a:redhat:openshift:4.12::el8","status":"not_affected","packages":["kernel","kernel-rt","openshift"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-4318"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-4318.json"},{"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":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"}]}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2023:1033"},{"type":"ADVISORY","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":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2023/wid-sec-w-2023-0600.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0600"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:57361"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60449"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60444"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:60452"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:62548"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:62550"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:65906"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:65838"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:66385"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:67836"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:67856"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:70585"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-4318"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4"},{"type":"WEB","url":"https://github.com/cri-o/cri-o/pull/6450"},{"type":"PACKAGE","url":"https://github.com/cri-o/cri-o"},{"type":"ARTICLE","url":"https://access.redhat.com/security/updates/classification/#moderate"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1033.json"},{"type":"ADVISORY","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318"},{"type":"ARTICLE","url":"https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-11-release-notes.html"},{"type":"ADVISORY","url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1503.json"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-4318.json"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-4318","url":"https://www.cve.org/CVERecord?id=CVE-2022-4318","license":"CC-BY-4.0","modified_at":"2024-08-03T01:34:50.124Z","relation":"self"},{"provider":"csaf-bsi","source_id":"WID-SEC-W-2023-0600","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2023-0600","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-10-01T22:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-4318","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318","relation":"self"},{"provider":"osv","source_id":"ALPINE-CVE-2022-4318","url":"https://osv.dev/vulnerability/ALPINE-CVE-2022-4318","modified_at":"2026-11-18T05:18:11.361975Z","relation":"self"},{"provider":"osv","source_id":"AZL-39873","url":"https://osv.dev/vulnerability/AZL-39873","license":"MIT","modified_at":"2026-04-21T04:28:50.883373Z","relation":"self"},{"provider":"osv","source_id":"GHSA-cm9x-c3rh-7rc4","url":"https://osv.dev/vulnerability/GHSA-cm9x-c3rh-7rc4","license":"CC-BY-4.0","modified_at":"2024-08-21T16:28:38.105255Z","relation":"self"},{"provider":"osv","source_id":"GO-2022-1206","url":"https://osv.dev/vulnerability/GO-2022-1206","license":"CC-BY-4.0","modified_at":"2026-03-03T04:52:58.062315Z","relation":"self"},{"provider":"osv","source_id":"RHSA-2023:1033","url":"https://osv.dev/vulnerability/RHSA-2023:1033","license":"CC-BY-4.0","modified_at":"2026-11-13T17:54:17Z","relation":"self"},{"provider":"osv","source_id":"RHSA-2023:1503","url":"https://osv.dev/vulnerability/RHSA-2023:1503","license":"CC-BY-4.0","modified_at":"2026-11-13T17:54:33Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-4318","url":"https://access.redhat.com/security/cve/CVE-2022-4318","license":"CC-BY-4.0","modified_at":"2023-11-15T22:07:49Z","relation":"self"}]}
