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

- Severity: Medium 6.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-12-02T18:53:35.641Z
- Modified: 2026-10-18T18:10:00.100Z
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- devspaces/code-rhel9: no versions given
- devspaces/pluginregistry-rhel9: no versions given
- devspaces-tech-preview/jetbrains-ide-rhel9: no versions given
- devspaces/udi-base-rhel9: no versions given
- devspaces/udi-rhel9: no versions given

## References

- <https://access.redhat.com/security/cve/CVE-2025-57850> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2391103> (issue-tracking)

## Sources

- CVE List: [CVE-2025-57850](https://www.cve.org/CVERecord?id=CVE-2025-57850), CVE Terms of Use, modified 2026-03-12
- NVD: [CVE-2025-57850](https://nvd.nist.gov/vuln/detail/CVE-2025-57850), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-57850 · Whole record: https://cve.day/CVE-2025-57850.json · Rebuilt by cve.day 2026-11-25T22:59:08.206Z
