CVE-2026-15809

Github.com/cri-o/cri-o: fix bypass for cve-2022-4318 — /etc/passwd injection via home env

Published Jul 15, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in CRI‑O, stemming from an incorrect fix for a prior vulnerability, permits injection of newline characters into the HOME environment variable when an attacker can set container environment variables. The newline is interpreted at startup, allowing arbitrary lines to be appended to the host’s /etc/passwd file. This introduces new user accounts that can run with elevated privileges, granting a persistent local privilege escalation on the host. The weakness is an improper handling of control characters (CWE‑116) and an improper constraint on output (CWE‑134).

Affected Systems

The vulnerability affects Red Hat Confidential Compute Attestation and Red Hat OpenShift Container Platform 4, as both incorporate CRI‑O. No specific version numbers are supplied, so any deployment of CRI‑O within these platforms is considered vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score of less than 1 % suggests a low likelihood of exploitation at the time of analysis. The vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack requires an attacker to have permissions to create or modify container workloads with the ability to set environment variables; once the newline is processed during container start, the attacker obtains a persistent privileged account on the host.

Remediation

Vendor 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.


OpenCVE Recommended Actions

  • Apply the latest CRI‑O update that addresses CVE‑2026‑15809
  • Restrict RBAC so that only authorized users can create or modify container workloads
  • Configure Security Context Constraints to run containers as non‑root and limit privilege escalation rights
  • Enable SELinux on all affected nodes to provide an additional containment barrier

Generated by OpenCVE AI on July 31, 2026 at 03:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:5
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.17::el8
cpe:/a:redhat:openshift:4.17::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.15::el8
cpe:/a:redhat:openshift:4.15::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.14::el8
cpe:/a:redhat:openshift:4.14::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.13::el8
cpe:/a:redhat:openshift:4.13::el9
cpe:/a:redhat:openshift:4.18::el8
cpe:/a:redhat:openshift:4.18::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.16::el8
cpe:/a:redhat:openshift:4.16::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.19::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.20::el8
cpe:/a:redhat:openshift:4.20::el9
cpe:/a:redhat:openshift:4.21::el9
References
Type Values Removed Values Added
First Time appeared Redhat openshift Ironic
CPEs cpe:/a:redhat:openshift:4.22::el8
cpe:/a:redhat:openshift:4.22::el9
cpe:/a:redhat:openshift_ironic:4.22::el9
Vendors & Products Redhat openshift Ironic
References
Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform
Type Values Removed Values Added
Weaknesses CWE-116
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title cri-o: Fix Bypass for CVE-2022-4318 — /etc/passwd Injection via HOME env Github.com/cri-o/cri-o: fix bypass for cve-2022-4318 — /etc/passwd injection via home env
First Time appeared Redhat
Redhat confidential Compute Attestation
Redhat openshift
CPEs cpe:/a:redhat:confidential_compute_attestation:1
cpe:/a:redhat:openshift:4
Vendors & Products Redhat
Redhat confidential Compute Attestation
Redhat openshift
References
Type Values Removed Values Added
Description 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.
Title cri-o: Fix Bypass for CVE-2022-4318 — /etc/passwd Injection via HOME env
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-134

    Use of Externally-Controlled Format String

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 2, 2026, 5:52 PM
Reserved
Jul 15, 2026, 9:57 AM
Status
Deferred
Published
Jul 15, 2026, 1:17 PM
Modified
Nov 2, 2026, 6:18 PM
Severity
Important
Public date
Jul 15, 2026, 10:18 AM