Hugo: Build-host file disclosure through path traversal in vendored module metadata
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| go:github.com/gohugoio/hugo | >= 0.56.0, < 0.170.0 | 0.170.0 |
A theme or module can ship a _vendor/modules.txt with an import path containing .. segments. Hugo used this path as the module's root directory without checking that it stays inside _vendor, so a malicious theme can make Hugo treat any directory on the build host (up to /) as its module root and read files from it. Details collectModulesTXT in modules/collect.go builds the vendored module directory with filepath.Join(vendorDir, path), where path comes straight from _vendor/modules.txt. When an…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/01 11:23、GitHub Advisory Databaseが「Hugo: Build-host file disclosure through path traversal in vendored module metadata」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: Go、GitHub。