Privilege Dropping / Lowering Errors Affecting screen package, versions <5.0.1-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.03% (7th 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-ALPINE321-SCREEN-10166012
  • published14 May 2025
  • disclosed26 May 2025

Introduced: 14 May 2025

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

How to fix?

Upgrade Alpine:3.21 screen to version 5.0.1-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream screen package and not the screen package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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

CVSS Base Scores

version 3.1