CVE-2020-26284
HIGH 8.5CVSS 3.1Hugo can execute a binary from the current directory on Windows
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.
- Published
- 21 Dec 2020
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-8j34-9876-pvfq
- Sources
- NVDJSONOSV GHSA-8j34-9876-pvfqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 8.5 | AV:N/AC:M/Au:S/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:windows:*:* |
< 0.79.1 | 0.79.1 |
| OSV | Go | github.com/gohugoio/hugo | < 0.79.1 | 0.79.1 |
References
- https://github.com/gohugoio/hugo/security/advisories/GHSA-8j34-9876-pvfq · Patch, Third Party Advisory, WEB
- https://github.com/golang/go/issues/38736 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-26284 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 21 Dec 2020)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Jun 2021)