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

Read the record on cve.org

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

CVSSScoreVectorSource
4.07.3 HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:Nsuse
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsuse

Weaknesses

  • CWE-271 Privilege Dropping / Lowering Errors

Affected Products

ProductVersions
screen
  • 5.0 through 5.0.0Affected

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.