{"id":"CVE-2025-57850","aliases":[],"summary":"Codeready-ws: privilege escalation via excessive /etc/passwd permissions","published_at":"2025-12-02T15:49:00Z","modified_at":"2026-08-10T11:00:52.758843Z","products":[{"slug":"openshift","name":"OpenShift","category":"kubernetes-container"}],"rating":{"severity":"medium","score":6.4,"vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","attack_path":"local","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0019099999917671084,"percentile":0.0885699987411499,"date":"2026-11-19T00:00:00Z"},"priority":5.9,"details":"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.","affected_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces-tech-preview/jetbrains-ide-rhel9","devspaces/code-rhel9","devspaces/pluginregistry-rhel9","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-57850"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2025-57850","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-57850","license":"CC-BY-4.0","published_at":"2025-12-02T18:53:35.641Z","modified_at":"2026-03-12T20:01:43.389Z","summary":"Codeready-ws: privilege escalation via excessive /etc/passwd permissions","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2025-57850"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat OpenShift Dev Spaces","provider":"cvelistv5","source":"CVE-2025-57850","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-57850"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391103"}]},{"provider":"redhat-vex","source_id":"CVE-2025-57850","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-57850","license":"CC-BY-4.0","published_at":"2025-12-02T15:49:00Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"codeready-ws: privilege escalation via excessive /etc/passwd permissions","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2025-57850"},{"type":"Red Hat","score":"Moderate","source":"CVE-2025-57850"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","cpe":"cpe:/a:redhat:openshift_devspaces:3","status":"affected","packages":["devspaces-tech-preview/jetbrains-ide-rhel9","devspaces/code-rhel9","devspaces/pluginregistry-rhel9","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":5,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2025-57850"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-57850.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-57850"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391103"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-57850"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57850"}]}],"references":[{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-57850"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2391103"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-57850.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-57850"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57850"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2025-57850","url":"https://www.cve.org/CVERecord?id=CVE-2025-57850","license":"CC-BY-4.0","modified_at":"2026-03-12T20:01:43.389Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-57850","url":"https://access.redhat.com/security/cve/CVE-2025-57850","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
