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.
Published: 2026-07-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

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

History

Sun, 02 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Redhat openshift Container Platform
Vendors & Products Redhat openshift Container Platform

Thu, 16 Jul 2026 06:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-134
References

Wed, 15 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-116
Metrics ssvc

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


Wed, 15 Jul 2026 13:00:00 +0000

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

Wed, 15 Jul 2026 12:15:00 +0000

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


Subscriptions

Redhat Confidential Compute Attestation Openshift Openshift Container Platform
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-17T08:50:58.115Z

Reserved: 2026-07-15T09:57:48.452Z

Link: CVE-2026-15809

cve-icon Vulnrichment

Updated: 2026-07-15T13:06:18.426Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-15T10:18:17Z

Links: CVE-2026-15809 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T20:15:13Z

Weaknesses
  • CWE-116

    Improper Encoding or Escaping of Output

  • CWE-134

    Use of Externally-Controlled Format String