Execution with Unnecessary Privileges Affecting screen package, versions [5.0.0,5.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-SCREEN-10123645
  • published14 May 2025
  • disclosed13 May 2025
  • creditUnknown

Introduced: 13 May 2025

CVE-2025-23395  (opens in a new tab)
CWE-250  (opens in a new tab)

How to fix?

Upgrade screen to version 5.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Execution with Unnecessary Privileges due to the logfile_reopen() function. An unprivileged user can create files in arbitrary locations with root ownership.

Note:

This is only exploitable when logfile_reopen() function is running with setuid-root privileges that are not being dropped while operating on a user-supplied path. The fixed PTY permissions are limited to write-read, so despite gaining a higher privileges an attacker can't perform arbitrary code execution.

References

CVSS Base Scores

version 4.0
version 3.1