{"id":"CVE-2025-23395","aliases":["ALPINE-CVE-2025-23395","BELL-CVE-2025-23395","EUVD-2025-27711","GHSA-84g7-x869-xfgv","openSUSE-SU-2026:12373-1"],"status":"published","title":"Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set","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","severity":{"version":"4.0","score":7.3,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00303,"percentile":0.2341,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-271"],"published":"2025-05-14T05:58:45.309907Z","modified":"2026-10-31T18:11:58Z","fixes":[{"ecosystem":"Alpine:v3.21","package":"screen","fixed_in":["5.0.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"screen","fixed_in":["5.0.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"screen","fixed_in":["5.0.1-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"screen","fixed_in":["5.0.1-r0"],"sources":["osv"]},{"ecosystem":"Alpaquita:stream","package":"screen","fixed_in":["5.0.1-r0"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.21","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.1-r0"}]}]},{"source":"osv","ecosystem":"Alpaquita:stream","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0-r0"},{"fixed":"5.0.1-r0"}]}]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"screen","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.0.2-1.1"}]}],"bundled":4}],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-23395","tags":["report"]},{"url":"https://www.openwall.com/lists/oss-security/2025/05/12/1","tags":["exploit","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23395"},{"url":"https://github.com/advisories/GHSA-84g7-x869-xfgv"},{"url":"https://security.alpinelinux.org/vuln/CVE-2025-23395","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2025-23395","tags":["advisory"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2025-23395","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-46803","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-46804","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-46805","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2025-23395","title":"Local root exploit via `logfile_reopen()` in screen 5.0.0 with setuid-root bit set","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","status":"published","published":"2025-05-26T15:18:46.694Z","modified":"2025-05-27T14:10:29.258Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high","assessor":"cna"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-271"],"updated_at":"2026-11-02T14:32:33.410838Z"}],"euvd":[{"id":"EUVD-2025-27711","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","status":"published","published":"2025-05-26T15:18:46Z","modified":"2025-05-27T14:10:29Z","cvss":[{"version":"4.0","score":7.3,"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","level":"high"}],"updated_at":"2026-11-02T20:32:38.348652Z"}],"ghsa":[{"id":"GHSA-84g7-x869-xfgv","title":"Screen 5.0.0 when it runs with setuid-root privileges does not drop privileges while operating on...","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","status":"published","published":"2025-05-26T18:30:25Z","modified":"2025-05-26T18:30:32Z","cvss":[{"version":"4.0","score":7.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-271"],"updated_at":"2026-11-02T15:02:26.855176Z"}],"nvd":[{"id":"CVE-2025-23395","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","status":"published","published":"2025-05-26T16:15:20.38Z","modified":"2026-06-17T08:54:01.52Z","cvss":[{"version":"4.0","score":7.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-271"],"updated_at":"2026-11-02T14:11:09.562272Z"}],"osv":[{"id":"ALPINE-CVE-2025-23395","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","status":"published","published":"2025-05-26T16:15:20.38Z","modified":"2026-08-27T22:18:02.827276929Z","cvss":[{"version":"4.0","score":7.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"updated_at":"2026-11-02T15:27:49.709457Z"},{"id":"BELL-CVE-2025-23395","status":"published","published":"2025-05-14T05:58:45.309907Z","modified":"2026-01-26T09:38:55.868668Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:21.491466Z"},{"id":"CVE-2025-23395","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","status":"published","published":"2025-05-26T16:15:20Z","modified":"2026-10-31T18:11:58.066002924Z","updated_at":"2026-11-02T15:44:47.009967Z"},{"id":"openSUSE-SU-2026:12373-1","title":"screen-5.0.2-1.1 on GA media","description":"These are all security issues fixed in the screen-5.0.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-10-30T00:00:00Z","modified":"2026-10-31T18:00:07.444360543Z","updated_at":"2026-11-02T16:58:41.463445Z"}]}}
