CVE-2025-23395 Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set
HighCVSS 7.3
EPSS 0.30%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Debian
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
Upgrade path
5 packages: 5 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/screen(Alpine v3.21) | < 5.0.1-r0 | 5.0.1-r0 | Fixed |
| alpine/screen(Alpine v3.22) | < 5.0.1-r0 | 5.0.1-r0 | Fixed |
| alpine/screen(Alpine v3.23) | < 5.0.1-r0 | 5.0.1-r0 | Fixed |
| alpine/screen(Alpine v3.24) | < 5.0.1-r0 | 5.0.1-r0 | Fixed |
| screen | >= 5.0, <= 5.0.0 | after 5.0.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| screen | >= 5.0, <= 5.0.0 | No fix listed |
| alpine/screen(Alpine:v3.21) | < 5.0.1-r0 | 5.0.1-r0 |
| alpine/screen(Alpine:v3.22) | < 5.0.1-r0 | 5.0.1-r0 |
| alpine/screen(Alpine:v3.23) | < 5.0.1-r0 | 5.0.1-r0 |
| alpine/screen(Alpine:v3.24) | < 5.0.1-r0 | 5.0.1-r0 |
References
- bugzilla.suse.com
- www.openwall.com exploit
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2025-23395 vendor-advisory