mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2026-07-22 08:40:51 +03:00
A specifically crafted backup source (compromised S3/GCS/Azure bucket) could use `..` components in object names to write files outside the `-storageDataPath` directory. Fix by validating all source parts against the destination directory before restore begins (restore.go), and adding a defense-in-depth panic guard in `NewDirectWriteCloser` (fslocal.go). PR https://github.com/VictoriaMetrics/VictoriaMetrics-enterprise/pull/1051 Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>