CVE-2025-23395CWE-271

Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set

High · published May 26, 2025

CVSS v4.0
7.3
EPSS
0%
Percentile
11.0
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS v4.0
7.3 · HIGH
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
0.00213 · 11.0th percentile
Weakness
CWE-271 · Privilege Dropping / Lowering Errors
Published
2025-05-26T15:18Z
EPSS history
Timeline
  • 26 MAY 15:18Z
    Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set
    cvelistv5