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

- Severity: High 7.3 (CVSS:4.0, scored by suse) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-05-26T15:18:46.694Z
- Modified: 2026-06-17T08:54:01.520Z
- Weaknesses: CWE-271
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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

(As written by CVE List.)

## Affected

- screen: from 5.0 up to 5.0.0

## Every score

- suse: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- suse: CVSS:4.0 7.3 High `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`

## References

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

## Sources

- CVE List: [CVE-2025-23395](https://www.cve.org/CVERecord?id=CVE-2025-23395), CVE Terms of Use, modified 2025-05-27
- NVD: [CVE-2025-23395](https://nvd.nist.gov/vuln/detail/CVE-2025-23395), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-23395 · Whole record: https://cve.day/CVE-2025-23395.json · Rebuilt by cve.day 2026-11-25T22:58:58.489Z
