Live threats

All CVEs / Gohugo

CVE-2020-26284Gohugo Hugo

High 8.5

Priority
51
CVSS 3.1
8.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
Yes
Published
Dec 21, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

Hugo is a fast and Flexible Static Site Generator built in Go. Hugo depends on Go's `os/exec` for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system `%PATH%` on Windows. In Hugo before version 0.79.1, if a malicious file with the same name (`exe` or `bat`) is found in the current working directory at the time of running `hugo`, the malicious command will be invoked instead of the system one. Windows users who run `hugo` inside untrusted Hugo sites are affected. Users should upgrade to Hugo v0.79.1. Other than avoiding untrusted Hugo sites, there is no workaround.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hugo.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/gohugoio/hugo < 0.79.1 0.79.1 go get github.com/gohugoio/hugo@v0.79.1

Per OSV / GitHub Advisories (GHSA-8j34-9876-pvfq). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gohugohugo< 0.79.1

Official sources

References

Links published by the sources. Open them with care.