Vulnerability in Red Hat Openshift Dev Spaces

CVE-2025-57850

A container privilege escalation flaw was found in certain CodeReady Workspaces images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, can leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.

EPSS: 0.002 (6.7th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-57850?
CVE-2025-57850 is a medium-severity vulnerability in Red Hat Openshift Dev Spaces, classified under Incorrect Default Permissions. CVSS score: 6.4/10. Published 2025-12-02.
How severe is CVE-2025-57850?
Medium severity. CVSS v3 base score is 6.4 out of 10.