Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-58403

MEDIUM · 6.5 CVSS Gepubliceerd: CWE-59

Beschrijving NL

Hugo is een statische sitegenerator. Van v0.123.0 tot en met v0.163.0 is Hugo's virtuele bestandssysteem zo ontworpen dat bestanden onder een mount niet buiten de mountboom kunnen reiken, maar een regressie zorgde ervoor dat RootMappingFs.statRoot stat aanriep, die symlinks volgt, in plaats van Lstat, dus een direct os.ReadFile "somefile" waarbij een bestand een symlink was die buiten de mount wees, zou de inhoud van het doelwit retourneren. Hierdoor kan een symlink die in een thema of lokale mount is geplant, willekeurige bestanden lezen die toegankelijk zijn voor de gebruiker die Hugo uitvoert. Dit probleem is opgelost in v0.163.1.

Origineel (Engels) tonen

Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMappingFs.statRoot to call Stat, which follows symlinks, instead of Lstat, so a direct os.ReadFile "somefile" where somefile was a symlink pointing outside the mount would return the target's contents. This effectively let a symlink planted inside a theme or local mount read arbitrary files reachable to the user running hugo. This issue is fixed in v0.163.1.

Vendors

Gohugo

Affected products

Hugo

References