CVE-2022-4318
HIGH 7.8CVSS 3.1CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation
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.
- Published
- 25 Sep 2023
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-538CWE-913
- Also known as
- GHSA-cm9x-c3rh-7rc4GO-2022-1206
- Sources
- NVDJSONOSV GHSA-cm9x-c3rh-7rc4JSONOSV GO-2022-1206JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | kubernetes | cri-ocpe:2.3:a:kubernetes:cri-o:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | redhat | openshift_container_platform_for_arm64cpe:2.3:a:redhat:openshift_container_platform_for_arm64:4.12:*:*:*:*:*:*:* |
= 4.12 | |
| NVD | redhat | openshift_container_platform_for_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.12:*:*:*:*:*:*:* |
= 4.12 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.12:*:*:*:*:*:*:* |
= 4.12 | |
| NVD | redhat | openshift_container_platform_ibm_z_systemscpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.12:*:*:*:*:*:*:* |
= 4.12 | |
| NVD | fedoraproject | extra_packages_for_enterprise_linuxcpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* |
= 36 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | redhat | openshift_container_platform_for_arm64cpe:2.3:a:redhat:openshift_container_platform_for_arm64:4.11:*:*:*:*:*:*:* |
= 4.11 | |
| NVD | redhat | openshift_container_platform_for_linuxonecpe:2.3:a:redhat:openshift_container_platform_for_linuxone:4.11:*:*:*:*:*:*:* |
= 4.11 | |
| NVD | redhat | openshift_container_platform_for_powercpe:2.3:a:redhat:openshift_container_platform_for_power:4.11:*:*:*:*:*:*:* |
= 4.11 | |
| NVD | redhat | openshift_container_platform_ibm_z_systemscpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:4.11:*:*:*:*:*:*:* |
= 4.11 | |
| OSV | Go | github.com/cri-o/cri-o | < 1.26.0 | 1.26.0 |
References
- https://access.redhat.com/errata/RHSA-2023:1033 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2023:1503 · Third Party Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2022-4318 · Third Party Advisory, WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2152703 · Issue Tracking, Third Party Advisory, WEB
- https://github.com/cri-o/cri-o/security/advisories/GHSA-cm9x-c3rh-7rc4 · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-4318 · ADVISORY
- https://github.com/cri-o/cri-o/pull/6450 · WEB, FIX
- https://github.com/cri-o/cri-o · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 25 Sep 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Dec 2022)