CVE-2025-23395
Screen 5.0.0 when it runs with setuid-root privileges does not drop privileges while operating on a user supplied path. This allows unprivileged users to create files in arbitrary locations with `root` ownership, the invoking user's (real) group ownership and file mode 0644. All data written to the Screen PTY will be logged into this file, allowing to escalate to root privileges
Scoring
- Severity
- HIGH
- CVSS base score
- 7.8
- CVSS vector
- CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- EPSS probability
- 0.20%
- CWE
- CWE-271
- Published
- 2025-05-26
- Last modified
- 2026-03-13
Weakness type
Related vulnerabilities
- CVE-2026-44477 — CloudNativePG: Metrics exporter allows privilege escalation to PostgreSQL superuser and OS RCE
- CVE-2026-35535 — In Sudo through 1.9.17p2 before 3e474c2, a failure of a setuid, setgid, or setgroups call, during a...
- CVE-2026-25704 — Incomplete privilege drop for com.system76.CosmicGreeter.GetUserData
- CVE-2025-53819 — Nix's privilege dropping to build user broke for macOS
- CVE-2024-35179 — Unprivileged Stalwart Mail Server user can read files as root
- CVE-2024-0985 — PostgreSQL non-owner REFRESH MATERIALIZED VIEW CONCURRENTLY executes arbitrary SQL
- CVE-2023-38496 — Apptainer's ineffective privileges drop when requesting container network
- CVE-2023-22648 — A Improper Privilege Management vulnerability in SUSE Rancher causes permission changes in Azure AD...