Time-of-check Time-of-use (TOCTOU) Race Condition Affecting wordops package, versions [,3.21.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-PYTHON-WORDOPS-6809228
  • published 6 May 2024
  • disclosed 6 May 2024
  • credit Unknown

How to fix?

Upgrade wordops to version 3.21.0 or higher.

Overview

wordops is an An essential toolset that eases server administration

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in stack_pref.py, which sets the the conf_path variable using os.open function, and does not restrict the permissions on the resulting file. An attacker can exploit this to inject a malicious file which is subsequently executed.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
7.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High