REDHAT-BUG-2500846: High severity CRI-O vulnerability

Published Jul 15, 2026
·
Updated

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.

Affected Software

1 affected component
CRI-O>=undefined

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Patch CVE-2022-4318
  2. Compensating control

    Block or restrict the ability for untrusted parties to influence container environment variables via the CRI CreateContainer request (e.g., enforce that only trusted callers can set environment variables on containers).

Event History

Jul 15, 2026
Data Sourced
via Red Hat·10:07 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2500846?

The severity of REDHAT-BUG-2500846 is classified as high, rated at 7.

2

What vulnerability does REDHAT-BUG-2500846 address?

REDHAT-BUG-2500846 addresses an incorrect fix for CVE-2022-4318 in CRI-O.

3

How does the vulnerability REDHAT-BUG-2500846 manifest?

The vulnerability manifests due to the use of a Go raw string literal in the check within server/container_create.go.

4

How do I fix REDHAT-BUG-2500846?

To fix REDHAT-BUG-2500846, it is essential to ensure the correct string literal is used in the affected code.

5

When was REDHAT-BUG-2500846 published?

REDHAT-BUG-2500846 was published on July 15, 2026.

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