Skip to content

CVE-2025-57850 Codeready-ws: privilege escalation via excessive /etc/passwd permissions

MediumCVSS 6.4 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
Red Hat

Description

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.

Upgrade path

6 packages: 0 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
redhat openshift devspaces All versions No fix listed No fix yet
redhat/devspaces-tech-preview/jetbrains-ide-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/devspaces/code-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/devspaces/pluginregistry-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/devspaces/udi-base-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet
redhat/devspaces/udi-rhel9(Red Hat openshift_devspaces 3) All versions No fix listed No fix yet

Affected products

ProductAffected versionsFixed in
redhat openshift devspaces All versions No fix listed
redhat/devspaces/code-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
redhat/devspaces/pluginregistry-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
redhat/devspaces-tech-preview/jetbrains-ide-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
redhat/devspaces/udi-base-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed
redhat/devspaces/udi-rhel9(Red Hat:openshift_devspaces:3) All versions No fix listed

References