CVE-2025-46802 Details
Description
For a short time they PTY is set to mode 666, allowing any user on the system to connect to the screen session.
A vulnerability in GNU Screen versions 5.0.0 and 4.9.1 (and older) allows for TTY hijacking when the 'multiattach' flag is set. This issue arises because the 'Attach()' function temporarily changes the TTY permissions to mode 0666, creating a race condition that enables other users on the system to intercept and inject data into the affected TTY. The vulnerability is particularly concerning in setuid-root installations, where it could be exploited to gain root privileges.
The vulnerability can be addressed by removing the temporary 'chmod()' calls in the 'Attach()' function, as Screen now securely passes the TTY file descriptor via UNIX domain sockets. This change has been implemented in a suggested patch for both the 4.9.1 and 5.0.0 versions of Screen.
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-46802 | [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-732 | Incorrect Permission Assignment for Critical Resource | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| GNU Screen | <= 4.9.1 (semver) 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