RCE in Gohugo Hugo
CVE-2020-26284
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS: 0.015 (73.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 74th percentile — 73.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.015 · newest: 0.015 · change: 0.000
Affected products
- Gohugo Hugo
- Gohugoio Hugo — versions < 0.79.1
Weakness classification (CWE)
References
- github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq (Patch, Third Party Advisory)
- github.com/golang/go/issues/38736 (Exploit, Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2020-26284?
- CVE-2020-26284 is a high-severity vulnerability in Gohugo Hugo, classified under OS Command Injection. CVSS score: 7.7/10. Published 2020-12-21.
- How severe is CVE-2020-26284?
- High severity. CVSS v3 base score is 7.7 out of 10.