Red Hat OpenShift Container Platform 4.12
Github.com/cri-o/cri-o: fix bypass for cve-2022-4318 — /etc/passwd injection via home env
A flaw was found in CRI-O. The fix for a previous vulnerability (CVE-2022-4318) was incorrect, allowing it to be bypassed. An attacker capable of setting environment variables on a container can inject a newline character into the HOME environment variable. This issue allows the addition of arbitrary lines into /etc/passwd by use of a specially crafted environment variable.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:1.25.5-36.rhaos4.12.git2e7f657.el8
Fixed in 0:1.26.5-32.rhaos4.13.git1088e36.el8
Fixed in 0:1.27.8-22.rhaos4.14.git0633bf1.el8
Fixed in 0:1.28.11-17.rhaos4.15.git48e6ddb.el8
Fixed in 0:1.29.13-14.rhaos4.16.git84cfdc6.el8
Fixed in 0:1.30.14-13.rhaos4.17.git3a25d98.el8
Fixed in 0:1.31.13-14.rhaos4.18.gitf2de9ac.el8
Fixed in 0:1.32.13-11.rhaos4.19.git089e95c.el9
Fixed in 0:1.33.13-5.rhaos4.20.git7ebc848.el9
Fixed in 0:1.34.11-4.rhaos4.21.git358c4b4.el9
Fixed in 0:1.35.6-5.rhaos4.22.git41f610b.el9
Mitigation
Upgrade Red Hat OpenShift Container Platform 4.12 to 0:1.25.5-36.rhaos4.12.git2e7f657.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.13 to 0:1.26.5-32.rhaos4.13.git1088e36.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.14 to 0:1.27.8-22.rhaos4.14.git0633bf1.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.15 to 0:1.28.11-17.rhaos4.15.git48e6ddb.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.16 to 0:1.29.13-14.rhaos4.16.git84cfdc6.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.17 to 0:1.30.14-13.rhaos4.17.git3a25d98.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.18 to 0:1.31.13-14.rhaos4.18.gitf2de9ac.el8 or later.
Upgrade Red Hat OpenShift Container Platform 4.19 to 0:1.32.13-11.rhaos4.19.git089e95c.el9 or later.
Upgrade Red Hat OpenShift Container Platform 4.20 to 0:1.33.13-5.rhaos4.20.git7ebc848.el9 or later.
Upgrade Red Hat OpenShift Container Platform 4.21 to 0:1.34.11-4.rhaos4.21.git358c4b4.el9 or later.
Upgrade Red Hat OpenShift Container Platform 4.22 to 0:1.35.6-5.rhaos4.22.git41f610b.el9 or later.
Workaround
Restrict access to users who can create or modify container workloads through appropriate RBAC permissions, apply security controls such as Security Context Constraints (SCCs) to limit privilege escalation, and enforce policies to run containers with reduced privileges (for example, as non-root) to reduce the impact of potential exploitation. Enable SELinux on affected nodes and consider admission controls to prevent potentially unsafe workload configurations.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:57361
- Vendor advisory access.redhat.com/errata/RHSA-2026:60444
- Vendor advisory access.redhat.com/errata/RHSA-2026:60449
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:60452
- Vendor advisory access.redhat.com/errata/RHSA-2026:62548
- Vendor advisory access.redhat.com/errata/RHSA-2026:65838
- Vendor advisory access.redhat.com/errata/RHSA-2026:65906
- Vendor advisory access.redhat.com/errata/RHSA-2026:66385
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.