← 취약점·업데이트

보통취약점 권고GoGitHub

Hugo: Build-host file disclosure through path traversal in vendored module metadata

영향

패키지영향받는 버전수정 버전
go:github.com/gohugoio/hugo>= 0.56.0, < 0.170.00.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…

GitHub Advisory Database에서 읽기

2026. 12. 01. 오전 11:23, GitHub Advisory Database에서 "Hugo: Build-host file disclosure through path traversal in vendored module metadata"을(를) 게시했습니다 (유형: 취약점 권고). 심각도는 "보통"(medium)입니다. 관련 기술: Go, GitHub.