Time-of-check Time-of-use (TOCTOU) Race Condition Affecting xapi-project/varstored package, versions [,1.3.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (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-XAPIPROJECTVARSTORED-17912417
  • published9 Jul 2026
  • disclosed9 Jul 2026
  • creditUnknown

Introduced: 9 Jul 2026

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

How to fix?

Upgrade xapi-project/varstored to version 1.3.2 or higher.

Overview

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the communication process with OVMF involving mapped guest memory. An attacker can manipulate an index used in a jump table by exploiting a race condition between the time a buffer is checked and the time it is used, potentially leading to unauthorized code execution or data corruption.

CVSS Base Scores

version 4.0
version 3.1