Hugo can execute a binary from the current directory on Windows
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| gohugoio | hugo | before 0.79.1 | 0.79.1 | Patch available | CNA |
| — | github.com/gohugoio/hugo (Go) | before 0.79.1 | 0.79.1 | Patch available | GHSA-8j34-9876-pvfq |
- hugo Vendorgohugoio Affected before 0.79.1 Fixed in 0.79.1 Patch available CNA
- github.com/gohugoio/hugo (Go) Vendor— Affected before 0.79.1 Fixed in 0.79.1 Patch available GHSA-8j34-9876-pvfq
Remediation
- Fix · CNA hugo (gohugoio) Fixed in 0.79.1
- Fix · GHSA-8j34-9876-pvfq github.com/gohugoio/hugo (Go) Fixed in 0.79.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2020-26284
- 2026-10-03 Alias added: GHSA-8j34-9876-pvfq
References
More gohugoio Hugo vulnerabilities
- TI-2026-64848 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots CVSS 4.0HIGH 8.7
- TI-2026-64846 Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks CVSS 4.0HIGH 8.7
- TI-2026-53153 Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant CVSS 4.0CRITICAL 9.3
- TI-2026-64849 Hugo v0.162.0 before v0.166.0 IP-literal Deny Rule Bypass CVSS 4.0HIGH 8.6
- TI-2026-32270 Hugo: Node tool execution allows file system access outside the project directory CVSS 4.0MEDIUM 6.2
- TI-2026-36906 Hugo: Symlink confinement bypass in resources.Get CVSS 4.0MEDIUM 6.9
Sources
- CVE-2020-26284 · CVE Program
- CVE-2020-26284 · NVD
- FIRST EPSS
- GHSA-8j34-9876-pvfq · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences