Time-of-check Time-of-use (TOCTOU) Race Condition Affecting screen package, versions [4.9.1,5.0.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd 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-10155663
  • published14 May 2025
  • disclosed12 May 2025
  • creditUnknown

Introduced: 12 May 2025

CVE-2025-46805  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade screen to version 5.0.1 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition due to the CheckPid() function. This function later sends a signal to the Kill() function, allowing an attacker to change PIU during the signal sending process to target a different, privileged process or trick the daemon into sending signals to itself.

Note:

Currently the CheckPid() function is only allowed to send SIGCONT and SIGHUP signals, making the likely impact to be limited to a local DoS or a minor integrity violation.

References

CVSS Base Scores

version 4.0
version 3.1