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
·
Updated

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.

Other sources

The fix for CVE-2022-4318 in CRI-O is incorrect and has been bypassable since it was introduced on December 14, 2022. The check in server/containercreate.go uses a Go raw string literal (\n) instead of an interpreted string literal ("\n"), causing it to search for the literal two-character sequence backslash-n (0x5c 0x6e) rather than an actual newline character (0x0a).

An attacker who can set environment variables on a container (via the CRI CreateContainer request) can supply a real newline character in the HOME environment variable, bypassing the check entirely. The unsanitized value is then passed to utils.GeneratePasswd, which uses fmt.Sprintf to construct the container's /etc/passwd content, allowing arbitrary line injection.

Red Hat

Affected Software

1 affected component
CRI-O CRI-O

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade github.com/cri-o/cri-o to a version that resolves this vulnerability.

    Patch fix bypass for cve-2022-4318 — /etc/passwd injection via home env
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2022-4318

Event History

Jul 15, 2026
Data Sourced
via Red Hat·10:07 AM
DescriptionSeverityAffected Software
CVE Published
via MITRE·12:32 PM
Data Sourced
via MITRE·12:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-15809?

CVE-2026-15809 has a high severity score of 7.8.

2

What is CVE-2026-15809 about?

CVE-2026-15809 involves a flaw in CRI-O that allows for injection of a newline character into the HOME environment variable, bypassing a previous fix.

3

How can CVE-2026-15809 be exploited?

An attacker who can set environment variables on a container can exploit CVE-2026-15809 to inject malicious content into the /etc/passwd file.

4

How do I fix CVE-2026-15809?

Fixing CVE-2026-15809 involves updating to the latest version of CRI-O that addresses this vulnerability.

5

Who is affected by CVE-2026-15809?

Users of CRI-O are at risk if they do not apply the necessary updates to mitigate CVE-2026-15809.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203