CVE-2026-61625
JSON

6.8medium

VictoriaMetrics vmrestore: path traversal via crafted backup part names escapes restore root

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8q3c-rjr9-xxrpGO-2026-6366

Description

VictoriaMetrics is a scalable solution for monitoring and managing time series data. Prior to 1.122.25, 1.136.12, and 1.146.0, vmrestore does not validate backup part path components before using lib/backup/actions/restore.go and lib/backup/fslocal/fslocal.go to write restored data below storageDataPath. An attacker who can supply or modify an S3, GCS, Azure Blob Storage, or other backup source can place .. components in object names. When an operator restores that source, the crafted names can create or overwrite files outside the intended restore root within the filesystem permissions of the vmrestore process. This issue is fixed in versions 1.122.25, 1.136.12, and 1.146.0.

Affected

Product or packageVersionsReported by
VictoriaMetrics VictoriaMetrics>= 1.137.0, < 1.146.0, >= 1.123.0, < 1.136.12, < 1.122.25CVE List
github.com/VictoriaMetrics/VictoriaMetrics (Go)from 1.137.0 before 1.146.0, from 1.123.0 before 1.136.12, before 1.122.25GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:N

Classification

CWE-22

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

VictoriaMetrics is a scalable solution for monitoring and managing time series data. Prior to 1.122.25, 1.136.12, and 1.146.0, vmrestore does not validate backup part path components before using lib/backup/actions/restore.go and lib/backup/fslocal/fslocal.go to write restored data below storageDataPath. An attacker who can supply or modify an S3, GCS, Azure Blob Storage, or other backup source can place .. components in object names. When an operator restores that source, the crafted names can create or overwrite files outside the intended restore root within the filesystem permissions of the vmrestore process. This issue is fixed in versions 1.122.25, 1.136.12, and 1.146.0.

GitHub Advisory Database
Summary

The VictoriaMetrics vmrestore utility does not validate backup part path components before writing restored files to the local filesystem. An attacker who can provide or modify a backup source can craft object names containing .. path components that cause vmrestore to write files outside the intended -storageDataPath restore root, subject to the permissions of the vmrestore process.

Impact

An attacker who can supply or modify the backup source -- for example by writing malicious object names to a compromised or misconfigured storage bucket -- can cause arbitrary files to be created or overwritten on the host running vmrestore, within the limits of the process's filesystem permissions.

Patches

Versions 1.146.0, 1.136.12, 1.122.25

Resources
Note

VictoriaMetrics' security model assumes backup sources are trusted and access-controlled. This vulnerability requires an attacker to have write access to the backup storage (e.g. S3, GCS, or Azure Blob Storage bucket) used as the -src for vmrestore. Under a correctly secured deployment where backup storage access is properly restricted, unauthorized exploitation of this issue should not be possible. Users are advised to follow the principle of least privilege when granting access to backup storage buckets.

Go Vulnerability Database

Path traversal via crafted backup part names escapes restore root in github.com/VictoriaMetrics/VictoriaMetrics

NVD (es)

VictoriaMetrics es una solución escalable para monitorear y gestionar datos de series temporales. Antes de 1.122.25, 1.136.12 y 1.146.0, vmrestore no valida los componentes de la ruta de la parte de respaldo antes de usar lib/backup/actions/restore.go y lib/backup/fslocal/fslocal.go para escribir datos restaurados debajo de storageDataPath. Un atacante que puede suministrar o modificar una fuente de respaldo S3, GCS, Azure Blob Storage u otra puede colocar componentes .. en los nombres de los objetos. Cuando un operador restaura esa fuente, los nombres manipulados pueden crear o sobrescribir archivos fuera de la raíz de restauración prevista dentro de los permisos del sistema de archivos del proceso vmrestore. Este problema está solucionado en las versiones 1.122.25, 1.136.12 y 1.146.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-61625 changed 2026-08-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-8q3c-rjr9-xxrp changed 2026-09-15CC-BY-4.0
Go Vulnerability DatabaseGO-2026-6366 changed 2026-09-15CC-BY-4.0
NVDCVE-2026-61625 changed 2026-10-26Public domain