SecurityContext

CVE-2025-58151: Xapi varstored - Time-of-Check to Time-of-Use (TOCTOU)

  • Cve: CVE-2025-58151
  • Name: Xapi varstored - Time-of-Check to Time-of-Use (TOCTOU)
  • Description: varstored is a component of the Xapi toolstack handling UEFI Variables for a VM. It has a communication path with OVMF inside the VM involving mapping a buffer prepared by OVMF. Within varstored, there were insufficient compiler barriers, creating TOCTOU issues with data in the shared buffer. The exact vulnerable behaviour depends on the code generated by the compiler. In a build of varstored using default settings, the attacker can control an index used in a jump table.
  • Impact: Attackers can manipulate control flow, potentially leading to arbitrary code execution or logic bypass within the VM environment.
  • Remediation: Update varstored component to a version with proper compiler barriers or latest available version.
  • Vulnerability impact: remote_code_execution
  • Requirements: Attacker needs control over input index used in jump table
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.4
  • Cvss vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Epss score: 0.00137
  • Epss percentile: 0.03123
  • Assignee: [email protected]
  • Published at: 2026-07-09T16:16:33Z
  • Age in days: 138
  • Modified at: 2026-09-29T19:10:00Z
  • References total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-58151
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, products total, products, oss, projects total, projects, rejected by nvd
  • Not known: vulnerability type, requirement type, hackerone

Cwe

IdName
CWE-367Time-of-check Time-of-use (TOCTOU) Race Condition

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://xenbits.xen.org/xsa/advisory-478.html
http://www.openwall.com/lists/oss-security/2026/01/27/2
http://xenbits.xen.org/xsa/advisory-478.html

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts