Skip to content
OpenAdvisories
High · 7.8 CVE-2025-23395 EUVD-2025-27711GHSA-84g7-x869-xfgv

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

Published May 26, 2025 · Updated May 27, 2025 · Assigned by suse

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

Affected products

VendorProductAffectedFixed
— screen 5.0 – ≤ 5.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed screen 5.0.2-1.1 openSUSE-SU-2026:12373-1
ReleasePackageFixed inAdvisory
Alpine v3.24 screen 5.0.1-r0 —
Alpine v3.23 screen 5.0.1-r0 —
Alpine v3.22 screen 5.0.1-r0 —
Alpine v3.21 screen 5.0.1-r0 —

Advisories 2

References