CVE-2025-23395
Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set
- State
- Published
- Severity
- 7.3 High
- Published
- May 26, 2025
- Updated
- May 27, 2025
- Reserved
- Jan 15, 2025
Description
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
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.3 High | 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 | suse |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | suse |
Weaknesses
- CWE-271 Privilege Dropping / Lowering Errors
Affected Products
| Product | Versions |
|---|---|
screen |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.