# CVE-2025-23395: Local root exploit via \`logfile\_reopen()\` in screen 5.0.0 with setuid-root bit set

- Priority: **Routine**
- Reason: Not severe (CVSS 7.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-05-26 · Modified: 2025-05-27
- Aliases: ALPINE-CVE-2025-23395
- Record: https://cvemate.com/vulnerability/CVE-2025-23395 · JSON: https://cvemate.com/vulnerability/CVE-2025-23395/json

## Description

```text
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
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.303%, percentile 24.853%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine screen (Alpine Linux): \< 5.0.1-r0

## References

- <https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-23395>
- <https://www.openwall.com/lists/oss-security/2025/05/12/1>
- <https://security.alpinelinux.org/vuln/CVE-2025-23395>

---

Data as of 2026-12-05T10:11:00.022Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
