CVE-2020-26284
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.
Weakness
- CWE-78: Improper Neutralization of Special Elements used in an OS Command
Timeline
- 2020-12-21Published by the CNA22:40 UTC
- 2021-06-23GitHub advisory published (GHSA-8j34-9876-pvfq)184 days after publication
Exploit and advisory records
GitHub advisory GHSA-8j34-9876-pvfq, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/gohugoio/hugo | before 0.79.1 | 0.79.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gohugo hugo | before 0.79.1fixed in 0.79.1 | 0.79.1 |
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq
- https://github.com/golang/go/issues/38736
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2020-26284'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2020-26284'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2020-26284'curl 'https://api.contrastcyber.com/cve_products/CVE-2020-26284'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).