CVE-2025-23395 Details
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
A local privilege escalation vulnerability has been identified in GNU Screen version 5.0.0 when it is executed with setuid-root privileges. The issue arises because the 'logfile_reopen()' function fails to drop privileges while handling user-supplied paths. This oversight allows unprivileged users to create files in arbitrary locations with root ownership, their real group ownership, and a file mode of 0644. Any data written to the Screen pseudo-terminal will be logged into these files, creating a pathway to escalate privileges to root.
Users can update to Screen version 5.0.0 and apply the available patches to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed May 26, 2025CISA-ADP
Assessed May 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://www.openwall.com/lists/oss-security/2025/05/12/1 | CISA-ADP | BundleMailing ListRemedy |
| https://bugzilla.suse.com/show_bug.cgi?id=CVE-2025-23395 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://www.openwall.com/lists/oss-security/2025/05/12/1 | [email protected] | BundleMailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-271 | Privilege Dropping / Lowering Errors | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| GNU Screen | 5.0.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 27, 2025 | CVE Modified | CISA-ADP |
| May 26, 2025 | New CVE Received | [email protected] |
Volerion