CVE-2022-4318
highpriority · track · 31EPSS 0.003 · 21 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.1–7.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (21)
Products and version ranges known to be affected.
- Red Hat OpenShift Container Platformall versionscert_bundDEcpe:/a:redhat:openshift:container_platform
- Red Hat OpenShift Container Platform 4.11all versionscert_bundDEcpe:/a:redhat:openshift:container_platform_4.11
- fedoraproject extra packages for enterprise linux= 8.0nvdUScpe:2.3:a:fedoraproject:extra_packages_for_enterprise_linux:*:*:*:*:*:*:*:*
- redhat openshift container platform for arm64= 4.11nvdUScpe:2.3:a:redhat:openshift_container_platform_for_arm64:*:*:*:*:*:*:*:*
- redhat openshift container platform for arm64= 4.12nvdUScpe:2.3:a:redhat:openshift_container_platform_for_arm64:*:*:*:*:*:*:*:*
- redhat openshift container platform for linuxone= 4.11nvdUScpe:2.3:a:redhat:openshift_container_platform_for_linuxone:*:*:*:*:*:*:*:*
- redhat openshift container platform for linuxone= 4.12nvdUScpe:2.3:a:redhat:openshift_container_platform_for_linuxone:*:*:*:*:*:*:*:*
- redhat openshift container platform for power= 4.11nvdUScpe:2.3:a:redhat:openshift_container_platform_for_power:*:*:*:*:*:*:*:*
- redhat openshift container platform for power= 4.12nvdUScpe:2.3:a:redhat:openshift_container_platform_for_power:*:*:*:*:*:*:*:*
- redhat openshift container platform ibm z systems= 4.11nvdUScpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:*:*:*:*:*:*:*:*
- redhat openshift container platform ibm z systems= 4.12nvdUScpe:2.3:a:redhat:openshift_container_platform_ibm_z_systems:*:*:*:*:*:*:*:*
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-0600Red Hat OpenShift: Schwachstelle ermöglicht Manipulation von DateienDeutsch2023-03-08csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle in Red Hat OpenShift ausnutzen, um Dateien zu manipulieren.
- GHSA-cm9x-c3rh-7rc4CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation2022-12-29ghsa · osvUS
### Impact It 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. Note: 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. ### Patches 1.26.0 will have the fix. More patches will be posted as they're available. ### Workarounds Additional 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 ### References
- GO-2022-1206CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o2024-08-21vendor · osvUS
CRI-O vulnerable to /etc/passwd tampering resulting in Privilege Escalation in github.com/cri-o/cri-o
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://access.redhat.com/errata/RHSA-2023:1033cnnvd
- https://access.redhat.com/errata/RHSA-2023:1503cnnvd
- https://access.redhat.com/security/cve/CVE-2022-4318cnnvd
- https://access.redhat.com/security/cve/cve-2022-4318cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2152703cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-4318/cnnvd
- https://access.redhat.com/errata/RHSA-2023:1033enisa_euvd
- https://access.redhat.com/errata/RHSA-2023:1503enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan