CVE-2025-46802

Temporary chown() of users' TTY to mode 0666 allows PTY hijacking in screen

Published May 26, 2025 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
For a short time they PTY is set to mode 666, allowing any user on the system to connect to the screen session.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-28068 For a short time they PTY is set to mode 666, allowing any user on the system to connect to the screen session.
Ubuntu USN Ubuntu USN USN-7978-1 GNU Screen vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-732
Type Values Removed Values Added
Description A flaw was found in Screen, allowing TTY hijacking during attachment to a multiuser session. The issue with this temporary TTY mode change is that it introduces a race condition that allows any other user in the system to open the caller's TTY for reading and writing for a small period of time. For a short time they PTY is set to mode 666, allowing any user on the system to connect to the screen session.
Title screen: TTY Hijacking while Attaching to a Multiuser Session Temporary chown() of users' TTY to mode 0666 allows PTY hijacking in screen
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

cvssV3_1

{'score': 6, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Description A flaw was found in Screen, allowing TTY hijacking during attachment to a multiuser session. The issue with this temporary TTY mode change is that it introduces a race condition that allows any other user in the system to open the caller's TTY for reading and writing for a small period of time.
Title screen: TTY Hijacking while Attaching to a Multiuser Session
Weaknesses CWE-362
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Weaknesses

Sources

Status
PUBLISHED
Assigner
suse
Published
Updated
May 27, 2025, 2:11 PM
Reserved
Apr 30, 2025, 11:28 AM
Status
Deferred
Published
May 26, 2025, 4:15 PM
Modified
Jun 17, 2026, 9:26 AM
Severity
Important
Public date
May 13, 2025, 4:42 PM