CVE-2020-26284: gohugo hugo OS Command Injection
Vulnerability summary
CVE-2020-26284 is a high (CVSS 8.5) OS Command Injection vulnerability in gohugo hugo. EPSS estimates a 1.47% chance of exploitation in the next 30 days, higher than 73.3% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 2Timeline
- 21-12-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 6 sources · 2 versions- CVE.orgCNA7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated8.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:NDiffers
- OSV · ChainguardEcosystem advisory · calculated8.5HighCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS trend
Probability
1.47%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
0.00 pp
From 1.47% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGo
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Chainguard1 product
- hugoAll versions (No fix recorded)
Debian1 product
- hugo< 0.79.1-1
Github.com/gohugoio1 product
- hugo< 0.79.1
Gohugo1 product
- hugo< 0.79.1
Gohugoio1 product
- hugo< 0.79.1
Wolfi1 product
- hugoAll versions (No fix recorded)
6 vendors · 6 products
References
4 links- github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfqX Refsource CONFIRMFIXWEBPatchThird Party Advisory