CVE-2026-50135
Beschrijving NL
Hugo is een statische sitegenerator. Van 0.123.0 tot 0.161.1 maakte een regressie RootMappingFs.statRoot gebruik van Stat (volgt symlinks) in plaats van Lstat, dus een directe bron.Get van een symlink die buiten de mount wijst, retourneerde de inhoud van het doel — een symlink geplant in een lokale mount (bijv. een verkochte thema's/ thema) las willekeurige bestanden die toegankelijk waren voor de HUGO-gebruiker. Go-module thema's van GitHub (symlinks gestript) en directorywandelingen werden niet beïnvloed. Vast in 0.162.0.
Origineel (Engels) tonen
Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made RootMappingFs.statRoot use Stat (follows symlinks) instead of Lstat , so a direct resources.Get of a symlink pointing outside its mount returned the target's contents — letting a symlink planted in a local mount (e.g. a vendored themes/ theme) read arbitrary files accessible to the Hugo user. Go-module themes from GitHub (symlinks stripped) and directory walks were unaffected. Fixed in 0.162.0.