CVE-2025-4437: Cri-o: large /etc/passwd file may lead to denial of service

Published Jun 26, 2025
·
Updated

There's a vulnerability in the CRI-O application where when container is launched with securityContext.runAsUser specifying a non-existent user, CRI-O attempts to create the user, reading the container's entire /etc/passwd file into memory. If this file is excessively large, it can cause the a high memory consumption leading applications to be killed due to out-of-memory. As a result a denial-of-service can be achieved, possibly disrupting other pods and services running in the same host.

Other sources

When running a container using the securityContext.runAsUser setting to specify which user the container should use to be ran, if the requested user is not present in the '/etc/passwd' file in the container image, cri-o tries to create the new user information. For that cri-o reads the passwd file into the memory all at once using os.ReadFile() function, if the read passwd file is too big it can lead to increased memory consumption, eventually resulting in a Denial of Service.

Red Hat

Affected Software

2 affected components
CRI-O CRI-O
go/github.com/cri-o/cri-o<=1.33.3

Event History

Jun 26, 2025
Data Sourced
via Red Hat·10:20 PM
DescriptionSeverityAffected Software
Aug 20, 2025
CVE Published
via MITRE·12:19 PM
Data Sourced
via MITRE·12:19 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:31 PM
Data Sourced
via GitHub·03:31 PM
DescriptionSeverityWeaknessAffected Software
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-2025-4437?

CVE-2025-4437 is a medium severity vulnerability due to its potential to cause excessive memory consumption when processing large /etc/passwd files.

2

How do I fix CVE-2025-4437?

To mitigate CVE-2025-4437, ensure that container configurations do not specify non-existent users in securityContext.runAsUser.

3

What impact does CVE-2025-4437 have on container security?

CVE-2025-4437 can lead to denial of service by consuming excessive memory resources in the container.

4

Which versions of CRI-O are affected by CVE-2025-4437?

CRI-O versions up to and including 1.33.3 are affected by CVE-2025-4437.

5

Is there a workaround for CVE-2025-4437?

A possible workaround for CVE-2025-4437 is to validate user configurations before launching containers to prevent specifying non-existent users.

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