{"id":"CVE-2022-4318","aliases":["ALPINE-CVE-2022-4318","AZL-39873","EUVD-2022-7601","GHSA-cm9x-c3rh-7rc4","GO-2022-1206","OESA-2024-1406","RHSA-2023:1033","RHSA-2023:1503"],"status":"published","title":"Cri-o: /etc/passwd tampering privesc","description":"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":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.0029,"percentile":0.2185,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-538","CWE-913"],"published":"2022-12-29T01:49:47Z","modified":"2026-11-03T07:31:26Z","fixes":[{"ecosystem":"Go","package":"github.com/cri-o/cri-o","fixed_in":["1.26.0"],"sources":["ghsa","osv"]},{"ecosystem":"Alpine:v3.21","package":"cri-o","fixed_in":["1.26.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"cri-o","fixed_in":["1.26.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"cri-o","fixed_in":["1.26.2-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"cri-o","fixed_in":["1.26.2-r0"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"cri-o","fixed_in":["1.22.3-1"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o","fixed_in":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debuginfo","fixed_in":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debugsource","fixed_in":["0:1.25.2-10.rhaos4.12.git0a083f9.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o","fixed_in":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debuginfo","fixed_in":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debugsource","fixed_in":["0:1.25.2-9.rhaos4.12.git0a083f9.el9"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o","fixed_in":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debuginfo","fixed_in":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"sources":["osv"]},{"ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debugsource","fixed_in":["0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/cri-o/cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.26.2-r0"}]}]},{"source":"osv","ecosystem":"Azure Linux:2","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.3-1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/cri-o/cri-o","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.26.0"}]}]},{"source":"osv","ecosystem":"openEuler:22.03-LTS-SP1","package":"cri-o","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.23.2-11.oe2203sp1"}]}],"bundled":4},{"source":"osv","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"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.12::el8","package":"cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-10.rhaos4.12.git0a083f9.el8"}]}]},{"source":"osv","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"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.12::el9","package":"cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.25.2-9.rhaos4.12.git0a083f9.el9"}]}]},{"source":"osv","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"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}]},{"source":"osv","ecosystem":"Red Hat:openshift:4.11::el8","package":"cri-o-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.24.4-10.rhaos4.11.git1ed5ac5.el8"}]}]}],"products":[{"vendor":"fedoraproject","product":"extra_packages_for_enterprise_linux"},{"vendor":"fedoraproject","product":"fedora"},{"vendor":"kubernetes","product":"cri-o"},{"vendor":"red hat","product":"red hat enterprise linux 9"},{"vendor":"red hat","product":"red hat openshift container platform 4.11"},{"vendor":"red hat","product":"red hat openshift container platform 4.12"},{"vendor":"redhat","product":"openshift_container_platform_for_arm64"},{"vendor":"redhat","product":"openshift_container_platform_for_linuxone"},{"vendor":"redhat","product":"openshift_container_platform_for_power"},{"vendor":"redhat","product":"openshift_container_platform_ibm_z_systems"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2023:1033","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2023:1503","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-4318","tags":["vdb-entry","x_refsource_REDHAT","x_transferred","Third Party Advisory","web","report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2152703","tags":["issue-tracking","x_refsource_REDHAT","x_transferred","Issue Tracking","Third Party Advisory","web","report"]},{"url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4","tags":["web","advisory"]},{"url":"https://github.com/cri-o/cri-o/pull/6450","tags":["web","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4318","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-cm9x-c3rh-7rc4"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-4318","tags":["advisory"]},{"url":"https://github.com/cri-o/cri-o","tags":["package"]},{"url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1406","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41723","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39325","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-48795","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1033.json","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-4318","tags":["advisory"]},{"url":"https://docs.openshift.com/container-platform/4.11/release_notes/ocp-4-11-release-notes.html","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_1503.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-4318","title":"Cri-o: /etc/passwd tampering privesc","description":"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.","status":"published","published":"2023-09-25T19:23:02.119Z","modified":"2024-08-03T01:34:50.124Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-538"],"updated_at":"2026-11-02T14:34:37.932195Z"}],"euvd":[{"id":"EUVD-2022-7601","description":"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.","status":"published","published":"2023-09-25T19:23:02Z","modified":"2024-08-03T01:34:50Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:56.529973Z"}],"ghsa":[{"id":"GHSA-cm9x-c3rh-7rc4","title":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation","description":"### 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","status":"published","published":"2022-12-29T01:49:47Z","modified":"2024-05-03T20:28:17Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N","level":"medium"}],"cwes":["CWE-538","CWE-913"],"updated_at":"2026-11-02T14:37:48.08826Z"}],"nvd":[{"id":"CVE-2022-4318","description":"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.","status":"published","published":"2023-09-25T20:15:10.59Z","modified":"2026-06-17T05:20:34.713Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"}],"cwes":["CWE-538","CWE-913"],"updated_at":"2026-11-02T14:07:39.811118Z"}],"osv":[{"id":"ALPINE-CVE-2022-4318","description":"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.","status":"published","published":"2023-09-25T20:15:10.59Z","modified":"2026-11-03T07:31:26.1073073Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T07:50:01.054176Z"},{"id":"AZL-39873","title":"CVE-2022-4318 affecting package cri-o for versions less than 1.22.3-1","description":"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.","status":"published","published":"2023-09-25T20:15:10Z","modified":"2026-04-21T04:28:50.883373Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:04.608733Z"},{"id":"GHSA-cm9x-c3rh-7rc4","title":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation","description":"### 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","status":"published","published":"2022-12-29T01:49:47Z","modified":"2024-08-21T16:28:38.105255Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N","level":"medium"}],"cwes":["CWE-538","CWE-913"],"updated_at":"2026-11-02T15:46:45.28161Z"},{"id":"OESA-2024-1406","title":"cri-o security update","description":"Open Container Initiative-based implementation of Kubernetes Container Runtime Interface.\r\n\r\nSecurity Fix(es):\r\n\r\nA maliciously crafted HTTP/2 stream could cause excessive CPU consumption in the HPACK decoder, sufficient to cause a denial of service from a small number of small requests.(CVE-2022-41723)\r\n\r\nA 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.(CVE-2022-4318)\r\n\r\nA malicious HTTP/2 client which rapidly creates requests and immediately resets them can cause excessive server resource consumption. While the total number of requests is bounded by the http2.Server.MaxConcurrentStreams setting, resetting an in-progress request allows the attacker to create a new request while the existing one is still executing. With the fix applied, HTTP/2 servers now bound the number of simultaneously executing handler goroutines to the stream concurrency limit (MaxConcurrentStreams). New requests arriving when at the limit (which can only happen after the client has reset an existing, in-flight request) will be queued until a handler exits. If the request queue grows too large, the server will terminate the connection. This issue is also fixed in golang.org/x/net/http2 for users manually configuring HTTP/2. The default stream concurrency limit is 250 streams (requests) per HTTP/2 connection. This value may be adjusted using the golang.org/x/net/http2 package; see the Server.MaxConcurrentStreams setting and the ConfigureServer function.(CVE-2023-39325)\r\n\r\nThe SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against SSH\u0026apos;s use of ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, PuTTY before 0.80, AsyncSSH before 2.14.2, golang.org/x/crypto before 0.17.0, libssh before 0.10.6, libssh2 through 1.11.0, Thorn Tech SFTP Gateway before 3.4.6, Tera Term before 5.1, Paramiko before 3.4.0, jsch before 0.2.15, SFTPGo before 2.5.6, Netgate pfSense Plus through 23.09.1, Netgate pfSense CE through 2.7.2, HPN-SSH through 18.2.0, ProFTPD before 1.3.8b (and before 1.3.9rc2), ORYX CycloneSSH before 2.3.4, NetSarang XShell 7 before Build 0144, CrushFTP before 10.6.0, ConnectBot SSH library before 2.2.22, Apache MINA sshd through 2.11.0, sshj through 0.37.0, TinySSH through 20230101, trilead-ssh2 6401, LANCOM LCOS and LANconfig, FileZilla before 3.66.4, Nova before 11.8, PKIX-SSH before 14.4, SecureCRT before 9.4.3, Transmit5 before 5.10.4, Win32-OpenSSH before 9.5.0.0p1-Beta, WinSCP before 6.2.2, Bitvise SSH Server before 9.32, Bitvise SSH Client before 9.33, KiTTY through 0.76.1.13, the net-ssh gem 7.2.0 for Ruby, the mscdex ssh2 module before 1.15.0 for Node.js, the thrussh library before 0.35.1 for Rust, and the Russh crate before 0.40.2 for Rust.(CVE-2023-48795)","status":"published","published":"2024-04-12T11:06:51Z","modified":"2026-08-18T01:18:20.732664839Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:41.095407Z"},{"id":"RHSA-2023:1033","title":"Red Hat Security Advisory: OpenShift Container Platform 4.12.6 packages and security update","status":"published","published":"2024-09-16T10:50:26Z","modified":"2026-08-14T10:02:12Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:10.611604Z"},{"id":"RHSA-2023:1503","title":"Red Hat Security Advisory: OpenShift Container Platform 4.11.34 packages and security update","status":"published","published":"2024-09-16T10:50:35Z","modified":"2026-08-14T10:02:14Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:10.611604Z"},{"id":"GO-2022-1206","title":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o","description":"CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o","status":"published","published":"2024-08-21T16:03:59Z","modified":"2026-03-03T04:52:58.062315Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
