{"id":"CVE-2025-57850","published":"2025-12-02T18:53:35Z","modified":"2026-03-12T20:01:43Z","title":"Codeready-ws: privilege escalation via excessive /etc/passwd permissions","vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0021,"percentile":0.06413,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2025-57850","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391103","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":5.8,"factors":[{"name":"EPSS percentile","points":1.28},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","versions":["all versions"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-12-02T20:24:23.630653Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-200300","exploited":false,"provenance":"source"}}