Time-of-check Time-of-use (TOCTOU) Race Condition Affecting storlets package, versions [,13.0.0)


Severity

Recommended
0.0
medium
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-STORLETS-6670633
  • published 22 Apr 2024
  • disclosed 22 Apr 2024
  • credit lujiefsi

How to fix?

Upgrade storlets to version 13.0.0 or higher.

Overview

storlets is a Middleware and Compute Engine for an OpenStack Swift compute framework that runs compute within a Swift cluster

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition via the gateway.py component, when a file is first written and then its permissions are later changed using chmod. An attacker can exploit the time window between when the file is initially written and when its permissions are modified and may gain access to the file.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
6.6 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High