CVE Vulnerabilities

CVE-2026-58041

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Aug 04, 2026 | Modified: Aug 04, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
5.3 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

A flaw in Node.js node:sqlite allows a stale StatementSyncIterator created through DatabaseSync#createTagStore() to continue executing a cached prepared statement after it has been reset and rebound with new parameters. SQLTagStore resets cached statements using sqlite3_reset() directly, bypassing the iterator invalidation mechanism introduced for StatementSync in recent releases

This vulnerability affects Node.js 22.x, 24.x, and 26.x.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check.

Affected Software

NameVendorStart VersionEnd Version
Red Hat Hardened ImagesRedHatnodejs22-main-22.23.2-2.3.hum1*
Red Hat Hardened ImagesRedHatnodejs24-main-24.18.1-0.1.hum1*
Red Hat Hardened ImagesRedHatnodejs26-main-26.7.0-1.5.1.hum1*

Potential Mitigations

References